Reputation: 51
I am getting following error while running npm uninstall... Can anyone please help to resolve... I have done almost everything to fix this...
npm WARN [email protected] requires a peer of react@^16.2.0 but none is installed. You must install peer dependencies yourself.
npm WARN The package detect-port is included as both a dev and production dependency.
audited 17423 packages in 20.551s
found 40 vulnerabilities (7 low, 31 moderate, 1 high, 1 critical)
run `npm audit fix` to fix them, or `npm audit` for details
And when I run npm audit
it gives me following = error
npm ERR! code ELOCKVERIFY
npm ERR! Errors were found in your package-lock.json, run npm install to fix them.
npm ERR! Invalid: lock file's [email protected] does not satisfy [email protected]
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-06-25T12_13_53_712Z-debug.log
Upvotes: 2
Views: 4351
Reputation: 21
Try removing detect-port dependency from both Dependencies and devDependencies in package.json file and remove it from node_modules and add detect-port with the version and run npm install and npm audit fix. this solves my problem but not with this package.
Upvotes: 1