Local dependency in package.json

后端 未结 12 1206
被撕碎了的回忆
被撕碎了的回忆 2020-11-22 16:42

I want to do something like this, so npm install also installs the package.json of ../somelocallib or more importantly its dependencie

12条回答
  •  有刺的猬
    2020-11-22 17:19

    This works for me.

    Place the following in your package.json file

    "scripts": {
        "preinstall": "npm install ../my-own-module/"
    }
    

提交回复
热议问题