NPM Installs Package Outside Current Directory

后端 未结 3 1512
抹茶落季
抹茶落季 2020-12-10 02:27

I try to install express package using npm from inside /home/iwan/my-project directory:

npm install express

express@3.3.7 ../node_modules/express
├── method         


        
3条回答
  •  旧巷少年郎
    2020-12-10 03:02

    You could also create a blank package.json file using guidelines from the https://docs.npmjs.com/files/package.json webpage. Then place this in your project folder and type npm install.

提交回复
热议问题