我无法再使用npm进行安装 [英] I cant install with npm anymore

查看:187
本文介绍了我无法再使用npm进行安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Npm运行正常,然后今天我尝试使用以下命令安装@ ngui/tab:

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

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 ]

然后,每当我尝试安装另一个插件时,它都会给出相同的确切错误

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

推荐答案

我解决了这个问题,发现"node_modules/core.js"文件夹已损坏,我删除了该文件夹并将其替换为"core.js"文件夹(如果出现问题,我将其另存为备份)

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)

这篇关于我无法再使用npm进行安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆