You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
If modules are already installed in a node_modules folder those will be listed in the package-lock.json file as well - no matter if there is a local package.json file listing those dependencies or not.
How can the CLI team reproduce the problem?
Go to a directory without a package-lock.json file, e.g: cd /tmp && mkdir foo && cd foo
Run npm prune
Check to see if a package-lock.json file have been created
supporting information:
npm -v prints: 5.0.3
node -v prints: v8.0.0
npm config get registry prints: https://registry.npmjs.org/
I'm opening this issue because:
What's going wrong?
A package-lock.json file is created if you run
npm prune
in a directory that doesn't have one already.This is what it will look like if there is no package.json and no modules installed in the directory:
This is what it will look like if there is a package.json in the same directory, but
npm install
have not yet been run:If modules are already installed in a
node_modules
folder those will be listed in the package-lock.json file as well - no matter if there is a local package.json file listing those dependencies or not.How can the CLI team reproduce the problem?
cd /tmp && mkdir foo && cd foo
npm prune
supporting information:
npm -v
prints:5.0.3
node -v
prints:v8.0.0
npm config get registry
prints:https://registry.npmjs.org/
This issue is related to #17061
The text was updated successfully, but these errors were encountered: