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

Amplify Console: while trigger a build #27

Open
ishwarpawar21 opened this issue May 19, 2021 · 2 comments
Open

Amplify Console: while trigger a build #27

ishwarpawar21 opened this issue May 19, 2021 · 2 comments

Comments

@ishwarpawar21
Copy link

While building code using Amplify getting following error.

17 error cipm can only install packages with an existing package-lock.json or npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or later to generate it, then try again.
18 verbose exit [ 1, true ]
2021-05-19T12:16:42.475Z [ERROR]: !!! Build failed
2021-05-19T12:16:42.475Z [ERROR]: !!! Non-Zero Exit Code detected
2021-05-19T12:16:42.475Z [INFO]: # Starting environment caching...
2021-05-19T12:16:42.475Z [INFO]: # Environment caching completed

Thanks!

@moshfrid
Copy link

+1

@esurdam
Copy link

esurdam commented Apr 3, 2022

You can edit the Build file in Amplify and change the preBuild command to npm i instead of npm ci to get it working.

Or you can edit the template.yaml file to change the command as well.

image

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

No branches or pull requests

3 participants