on 06-11-2022 4:43 PM
Hi, While trying to build the MTA Project from mta.yaml file, I am getting the below error. any idea on how to resolve this?
npm ERR! 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.
Hi @vikas75saxena,
did you successfully execute the previous steps in the exercise (manually deploying using cf push)?
Also, did you use the solution GitHub repository when starting to build your application as suggested in the Learning Journey?
If not, you could try to select the corresponding solution branch to your current exercise there
and then replace the package.json and package-lock.json files in your project with the respective files from the GitHub repository and then retry the build and deployment steps.
If that doesn't work, it is hard to tell from the distance what the issue might be. Easiest solution would be to use the solution/5_deploy_manually branch from the GitHub and go on from there. If you used the GitHub repository from the start, you could just run command
git checkout solution/5_deploy_manually
within the terminal in your project and then go on from there.
Best regards,
Jannes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did the suggestion shared by @jannes_schofeld solve the issue you reported?
If this question is answered from your perspective, I also would like to ask you to use function “Accept as Solution" to complete this case.
Kind regards
Margit
Subject | Kudos |
---|---|
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.