In a Foundation for sites project im trying to add Lightgallery as an npm package.
But it will not install, resulting in this error about 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.
I have tried to delete the file, move it away etc. but it result an almost identically error, stating that
[thePathTo]/foundation-6.4.3/node_modules/yargs/node_modules/.bin/window-size
should be moved.
If I delete the node_modules
folder and runs npm install
I get a new node_modules
folder, but with the node packages I have globally (354 folders) instead of the packages listed in package.json
(36 folders)
npm version: 6.3.0
node version: v8.5.0
Gulp CLI version 1.3.0 – Local version 4.0.0-alpha.3
Can someone please help me figure out what is wrong with my setup?