I cant install with npm anymore

你离开我真会死。 提交于 2020-04-13 05:24:49

问题


Npm was working just fine, then today I tried to install @ngui/tab using the following command :

npm install @ngui/tab --save

it gave me the following error :

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Users\\alpha\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'install',
1 verbose cli   'core-js' ]
2 info using npm@5.0.4
3 info using node@v6.11.0
4 verbose npm-session 08b82689ec3193f8
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly fetchPackageMetaData error for core-js@file:node_modules\core-js ELOOP: too many symbolic links encountered, open 'D:\Crescendo veille\app2\node_modules\core-js\package.json'
8 verbose stack Error: ELOOP: too many symbolic links encountered, open 'D:\...\node_modules\core-js\package.json'
8 verbose stack     at Error (native)
9 verbose cwd D:\Crescendo veille\app2
10 verbose Windows_NT 6.1.7601
11 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\alpha\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "core-js"
12 verbose node v6.11.0
13 verbose npm  v5.0.4
14 error path D:\...\node_modules\core-js\package.json
15 error code ELOOP
16 error errno -4067
17 error syscall open
18 error ELOOP: too many symbolic links encountered, open 'D:\...\node_modules\core-js\package.json'
19 verbose exit [ -4067, true ]

Then whenever I try to install another plugin, it gives the same exact error


回答1:


I solved the problem, I found that "node_modules/core.js" folder was corrupted , I deleted it and replaced it with a "core.js" folder (that I saved as a backup if things goes wrong)




回答2:


When I encountered this issue it was because I accidentally ran npm install while in the node_modules folder.



来源:https://stackoverflow.com/questions/45587430/i-cant-install-with-npm-anymore

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!