Why do Node modules go into .staging folder?

后端 未结 8 1517
轮回少年
轮回少年 2021-01-01 08:41

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

8条回答
  •  借酒劲吻你
    2021-01-01 09:37

    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

提交回复
热议问题