Local dependency in package.json

后端 未结 12 1321
被撕碎了的回忆
被撕碎了的回忆 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:30

    I know that npm install ../somelocallib works.

    However, I don't know whether or not the syntax you show in the question will work from package.json...

    Unfortunately, doc seems to only mention URL as a dependency.

    Try file:///.../...tar.gz, pointing to a zipped local lib... and tell us if it works.

提交回复
热议问题