Is it possible to not generate package-lock.json with npm 5? -


i've updated npm it's latest version performance upgrade. since company hasn't updated globally, don't want usage of package-lock.json.

i ignore in git workflow adding package-lock.json .git/info/exclude. still used npm when installing or updating dependencies.

so how can tell npm not use it?

disactivate package-lock.json usage globally

to disable globally, you'll have set package-lock false in ~/.npmrc. can using:

npm config set package-lock false 

this allow use npm@5 performance without bothering package-lock.json. though package-lock.json has many benefits according npm doc, , may consider using it.

disactivate package-lock.json usage per command

according npm-cli doc, can use --no-package-lock options install command:

npm install --no-package-lock any-lib 

and according this question, existing package-lock.json not taken care of.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -