Error while update npm-package
-
Good morning,
on my WSL-Ubuntu also on my VPS I get an error while I would like to update an app with cloudron-cli.
It said to me, that I should update the npm package of cloudron-cli
sudo npm install -g cloudron@4.13.1 changed 121 packages, and audited 122 packages in 4s 13 packages are looking for funding run `npm fund` for details 2 vulnerabilities (1 moderate, 1 high) To address issues that do not require attention, run: npm audit fix Some issues need review, and may require choosing a different dependency. Run `npm audit` for details. ---- sudo npm audit fix --force ---- npm WARN using --force Recommended protections disabled. npm ERR! code ENOLOCK npm ERR! audit This command requires an existing lockfile. npm ERR! audit Try creating one first with: npm i --package-lock-only npm ERR! audit Original error: loadVirtual requires existing shrinkwrap file npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2022-01-22T06_06_38_189Z-debug-0.logI have no clue what can I do to solve this problem.
-
Good morning,
on my WSL-Ubuntu also on my VPS I get an error while I would like to update an app with cloudron-cli.
It said to me, that I should update the npm package of cloudron-cli
sudo npm install -g cloudron@4.13.1 changed 121 packages, and audited 122 packages in 4s 13 packages are looking for funding run `npm fund` for details 2 vulnerabilities (1 moderate, 1 high) To address issues that do not require attention, run: npm audit fix Some issues need review, and may require choosing a different dependency. Run `npm audit` for details. ---- sudo npm audit fix --force ---- npm WARN using --force Recommended protections disabled. npm ERR! code ENOLOCK npm ERR! audit This command requires an existing lockfile. npm ERR! audit Try creating one first with: npm i --package-lock-only npm ERR! audit Original error: loadVirtual requires existing shrinkwrap file npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2022-01-22T06_06_38_189Z-debug-0.logI have no clue what can I do to solve this problem.
@roru2k20 are you by any chance running the npm install command withing a repository which contains a package.json or so?
Also which nodejs and npm versions are you using?
Further it is not clear to me, if the install or the audit fix fails. The latter should not be run when installing the cli, this is something you would run as a developer developing the package. We are updating the cli package as we see fit, not all automatic security warnings issued by npm are relevant, so no worries.
-
@roru2k20 are you by any chance running the npm install command withing a repository which contains a package.json or so?
Also which nodejs and npm versions are you using?
Further it is not clear to me, if the install or the audit fix fails. The latter should not be run when installing the cli, this is something you would run as a developer developing the package. We are updating the cli package as we see fit, not all automatic security warnings issued by npm are relevant, so no worries.
-
@roru2k20 are you by any chance running the npm install command withing a repository which contains a package.json or so?
Also which nodejs and npm versions are you using?
Further it is not clear to me, if the install or the audit fix fails. The latter should not be run when installing the cli, this is something you would run as a developer developing the package. We are updating the cli package as we see fit, not all automatic security warnings issued by npm are relevant, so no worries.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login