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
I was having 2 versions of node installed on my system.
nodejs v4.2
and node v8.6
I thought this could be conflicting, so I deleted nodejs v4.2
with following commands.
sudo apt-get remove nodejs
and linked the path with
sudo ln -s /usr/bin/node /usr/bin/nodejs
Again I ran npm install
and it got fixed