尝试安装npm软件包会导致EEXIST错误

时间:2018-08-15 13:57:03

标签: node.js npm gulp zurb-foundation lightgallery

在一个Foundation for sites项目中,我试图将Lightgallery添加为npm软件包。

但是它不会安装,导致有关Gulp的错误:

➜  foundation-6.4.3 npm i lightgallery
npm ERR! path [thePathTo]/foundation-6.4.3/node_modules/.bin/gulp
npm ERR! code EEXIST
npm ERR! Refusing to delete [thePathTo]/foundation-6.4.3/node_modules/.bin/gulp: is outside [thePathTo]/foundation-6.4.3/node_modules/gulp and not a link
npm ERR! File exists: [thePathTo]/foundation-6.4.3/node_modules/.bin/gulp
npm ERR! Move it away, and try again.

我试图删除文件,将其移开,等等。但是它导致几乎相同的错误,并指出 [thePathTo]/foundation-6.4.3/node_modules/yargs/node_modules/.bin/window-size 应该被移动。

如果我删除node_modules文件夹并运行npm install,则会得到一个新的node_modules文件夹,但是对于节点包,我在全局拥有(354个文件夹),而不是{中列出的包{1}}(36个文件夹)

npm版本:6.3.0

节点版本:v8.5.0

Gulp CLI版本1.3.0 –本地版本4.0.0-alpha.3

有人可以帮我弄清楚我的设置有什么问题吗?

0 个答案:

没有答案