运行npm卸载时出现以下错误...谁能帮助解决...我已经做了几乎所有的工作来解决此问题...
npm WARN react-star-rating-component@1.4.1 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
当我运行npm audit
时,会出现以下错误= p
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 detect-port@1.2.3 does not satisfy detect-port@1.0.1
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
答案 0 :(得分:0)
尝试从package.json文件的Dependencies和devDependencies中删除检测端口依赖关系,然后将其从node_modules中删除,并添加带有该版本的detect-port并运行npm install和npm audit fix。这可以解决我的问题,但不能使用此软件包。