Nodejs + npm, installing modules on ntfs partition

前端 未结 7 1030
走了就别回头了
走了就别回头了 2021-01-30 06:52

I have a problem when installing npm modules. NodeJS is installed on Ubuntu 11.10 running on Virtual Box on Windows host. My project files are on NTFS partition (I have to share

7条回答
  •  粉色の甜心
    2021-01-30 07:32

    Since version 1.2.21, npm has a new option for the install command. --no-bin-links

    You can use if for installing a specific node module

    npm install express --no-bin-links
    

    and also for a package.json install

    npm install --no-bin-links
    

    With this option I've been able to install many npm modules without problems in my shared forlder inside the VM (Ubuntu guest, Windows Host)

    The commit where the option was added to the npm code is b4c58617039c21c10889a9869f8e86a23e17d3a0

提交回复
热议问题