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

后端 未结 3 1675
再見小時候
再見小時候 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.

    0 讨论(0)
  • 2020-12-31 23:02

    What worked for me was to start windows command prompt as Administrator and vagrant up from there.

    The problem was, that windows as a Host machine, needs administrator privileges to create symlinks.

    to get a rid of previous unsuccessful installation I run npm clean-install npm run dev still ends up with some errors but ui:auth works.

    0 讨论(0)
  • 2020-12-31 23:06

    What worked for me was this. In the Homestead environment I used:

    sudo su
    

    then run again

    npm install
    
    0 讨论(0)
提交回复
热议问题