I have an Electron app that I'm trying to install node modules for. When I run npm install
, it creates the node_modules
folder but all the modules go into a subfolder called .staging
. Each module also has -xxxxx
appended to it, where the x's are some random alphanumerics.
Other Electron apps I've created have never done this. All the node modules sit in the root of node_modules
and don't have -xxxxx
appended.
Any idea why this is happening?
This only happens temporarily until the modules are downloaded and installed. Node seems to do this so it can place together common submodules from all the modules you are installing so it can better structure the node modules folder(mainly for windows users).
If this is happening after an npm install finishes it is likely that there is something wrong with your node installation or something in the install failed.