npm ERR! EPROTO: protocol error, symlink '../@babel/parser/bin/babel-parser.js' -> '/home/vagrant/code/proadco.test/node_modules/.bin/parser'

后端 未结 3 1692
再見小時候
再見小時候 2020-12-31 22:42

I\'m attempting to execute npm install in Git Bash client on Windows 8.1 but receiving the following error:

npm WARN optional SKIPPING OPTIONAL          


        
3条回答
  •  独厮守ぢ
    2020-12-31 22:57

    In case you want npm to stop from creating symlinks for you, you can avoid that by

    npm install --no-bin-links
    

    more information about it on npm documentation https://docs.npmjs.com/cli/install.html

    Note: This might have some unknown side effects, this methods worked fine for an application I was working on and when I encountered this issue. The side effects might be related to symlink, which npm is trying to create, and in the later phase of development it finds out that the symlink is not available.

提交回复
热议问题