How do I change the default prefix character (^
) that npm
inserts in package.json
when I run npm install --save package
?
npm config set save-prefix='~'
sets your default back to tilde
npm config set save-prefix=''
will remove the auto-prefixing