screepers / screeps-server-mockup

Private server package for unit tests
MIT License
56 stars 13 forks source link

lodash rename issue during install #27

Closed legion0 closed 4 years ago

legion0 commented 4 years ago

Getting error trying to install, running: npm i -D screeps-server-mockup

complaining about failing to rename /home/legion/workspace/screeps/node_modules/@screeps/backend/node_modules/lodash

why is there a node_modules inside node_modules ? seems odd to me (node noob here).

2020-04-24T21_03_32_483Z-debug.log terminal-output.txt

Hiryus commented 4 years ago

Having several node_modules is a normal behavior: each module may have its own dependencies inside its own node_modules (this is a big complaint about npm by the may).

I never got this error though.

legion0 commented 4 years ago

yes I am using WSL, i check permissions and they all seem fine user+group correct and drwxrwxrwx on all directories. updated npm as suggested but still getting the same error

legion0 commented 4 years ago

did a hard reset of all packages and that fixed the issue

rm -rf node_modules package-lock.json && npm install npm i -D screeps-server-mockup