npm ERR! Refusing to delete / code EEXIST

前端 未结 12 997
暖寄归人
暖寄归人 2020-12-24 11:17

I\'m just running a simple npm install and i get this error.

npm ERR! path /Users/jasonazoulay/Desktop/fabrick.io/delegation/node_modules/@angul         


        
12条回答
  •  执笔经年
    2020-12-24 11:51

    I got this problem on Linux (npm is the current latest 5.6.0), because I created a tgz archive, and I needed to --dereference some symlinks (see man tar) when creating a tgz archive (which was them copied to VM for testing). This way a lot of symlinks in node_modules/.bin also became regular files. npm says in the error message, .e.g.

    npm ERR! Refusing to delete /path/to/node_modules/.bin/jest: is outside /path/to/node_modules/jest and not a link

提交回复
热议问题