Npm工作正常,今天我尝试使用以下命令安装@ ngui / tab:
npm install @ngui/tab --save
它给了我以下错误:
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 ]
然后每当我尝试安装另一个插件时,它都会给出相同的错误
答案 0 :(得分:3)
我解决了这个问题,我发现" node_modules / core.js"文件夹已损坏,我将其删除并替换为" core.js"文件夹(如果出现问题我保存为备份)
答案 1 :(得分:0)
遇到此问题是因为我在npm install
文件夹中不小心运行了node_modules
。