NPM Install and Save Local Relative Path -


i'm trying npm install local .tgz package distributing shared angular components.

npm install ./../@company/my-package-0.10.0.tgz --save 

the problem above code saves full pathname in package.json.

e.g.

"@company/package": "file:///c:\\...\\my-package-0.10.0.tgz" 

this poses issue source control fellow developers on team, don't have source installed in identical location.

how can make npm save relative file path within package.json npm install command? don't want have alter package.json file manually , run full npm install each time update component package.

edit:

to clarify, end result want:

install:

npm install ./../@company/my-package-0.10.0.tgz --save

package.json:

"@company/package": file:./../@company/my-package-0.10.0.tgz


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -