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

always run npm install #71

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

always run npm install #71

wants to merge 1 commit into from

Conversation

nvdk
Copy link
Member

@nvdk nvdk commented Mar 26, 2025

Since we merge the template package.json into the services package.json the existing package-lock.json of the service will never match with the package-lock.json of the service.

As such there is no use in trying to do a npm ci, since npm will always fail with

npm error `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.

Either the merging needs to also merge the package-lock.json (but I couldn't achieve this easily) or we need to need run a npm install (this PR's proposal)

Since we merge the template package.json into the services package.json the existing package-lock.json of the service will never match with the package-lock.json of the service. As such there is no use in trying to do a npm ci, since npm will always fail with 
```
npm error `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant