Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HOWTO] Regenerate npm-shrinkwrap after updating a module in package.json #104

Open
lakshmi-kannan opened this issue Jan 16, 2018 · 2 comments

Comments

@lakshmi-kannan
Copy link
Contributor

  • Install node version as specified in engine section in package.json

  • git clone git@github.com:StackStorm/st2chatops.git

  • npm install

  • Edit package in package.json and set it to new version

  • npm update $package_name

  • npm shrinkwrap

@christopherjbaker
Copy link

Instead of updating package.json manually and npm update $package_name, I think you could just npm install $package_name@$package_version

@arm4b
Copy link
Member

arm4b commented Jun 21, 2019

To have the environment fully reproducible, running it in existing Docker images from st2chatops repo may help:

docker-compose run xenial npm install --production
# example of updating only specific hubot-stackstorm package
docker-compose run xenial npm update hubot-stackstorm
docker-compose run xenial npm shrinkwrap

cat npm-shrinkwrap.json

It's also possible to do this in CircleCI itself with SSH debug builds if required environment is absent locally.

@arm4b arm4b changed the title INFO: How to shrinkwrap after updating a module in package.json? [HOWTO] Regenerate npm-shrinkwrap after updating a module in package.json Jun 26, 2019
@nzlosh nzlosh unpinned this issue Apr 27, 2022
@arm4b arm4b pinned this issue Apr 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants