The best way to run npm install for nested folders?

前端 未结 9 1881
北恋
北恋 2020-11-30 17:38

What is the most correct way to install npm packages in nested sub folders?

my-app
  /my-sub-module
  package.json
package.json
<
9条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-30 18:13

    Just for reference in case people come across this question. You can now:

    • Add a package.json to a subfolder
    • Install this subfolder as reference-link in the main package.json:

    npm install --save path/to/my/subfolder

提交回复
热议问题