help
help copied to clipboard
npm audit requires `package-lock.json` which is already disabled using npm config set...
Version:
{ npm: '6.12.0',
ares: '1.15.0',
brotli: '1.0.7',
cldr: '35.1',
http_parser: '2.8.0',
icu: '64.2',
modules: '64',
napi: '4',
nghttp2: '1.39.2',
node: '10.16.3',
openssl: '1.1.1c',
tz: '2019a',
unicode: '12.1',
uv: '1.28.0',
v8: '6.8.275.32-node.54',
zlib: '1.2.11' }
Platform: Windows 7 Pro x32-bit
Description: npm audit
requires package-lock.json
which is already disabled using npm config set...
Steps-to-do:
writing package-lock=false to .npmrc file on the project or npm config set package-lock false
npm audit
->
npm ERR! code EAUDITNOLOCK
npm ERR! audit Neither npm-shrinkwrap.json nor package-lock.json found: Cannot audit a project without a lockfile
npm ERR! audit Try creating one first with: npm i --package-lock-only