I’ve noticed that packages are installing themselves into two different places and I wondered which one is correct, or maybe it doesn’t matter. The two locations are;
C:\nodejs\lib\node_modules
C:\nodejs\node_modules
Now I can hear the sighs as you realise I’m running node on windows but it works fine. Kind of:)
Anyway, when I run npm ls it only lists packages in C:\nodejs\node_modules which makes me think that’s the correct location. But then noticed that the npm itself is in C:\nodejs\lib\node_modules which makes me think that’s the correct location. Is there a correct location? They all seem to work fine. I’ve moved modules from C:\nodejs\node_modules to C:\nodejs\lib\node_modules and they still work OK.
Your answers will be greatly appreciated.
Packages go here
Drive:\path\to\your\code\node_modulesI happen to Store my code in
H:\dos\pdso my node_modules goes inH:\dos\pd\node_modulesThat’s just my
pdmodules of course. If I’m working on some other code it goes inDrive:\some\sensible\location\node_modules