Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I cant install with npm anymore

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 [email protected]
3 info using [email protected]
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

like image 348
BadrEddineBen Avatar asked Aug 09 '17 09:08

BadrEddineBen


2 Answers

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)

like image 82
BadrEddineBen Avatar answered Nov 11 '22 08:11

BadrEddineBen


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

like image 2
daven97 Avatar answered Nov 11 '22 08:11

daven97