npm install module in current directory

后端 未结 7 1269
眼角桃花
眼角桃花 2020-12-12 21:00

When I run:

npm install my-app

The app is installed into node_modules/my-app/...

I also tried

npm install -g my-app         


        
7条回答
  •  庸人自扰
    2020-12-12 21:28

    You ought to have a package.json in your current directory.

    Then write npm install --save-dev or npm install --save and it will install to the node_modules directory

提交回复
热议问题