相关疑难解决方法(0)

运行“npmauditfix--force”会降级反应脚本

我的 React 项目有一个很大的问题。
我正在尝试更新项目中的库,但出了问题。

这是package.json. 请注意,react-scripts版本设置为"^4.0.3".

{
  "name": "server",
  "version": "1.1.0",
  "description": "",
  "main": "index.js",
  "engines": {
    "node": "v14.16.0",
    "npm": ">=7.6.0"
  },
  "scripts": {
    "start": "node index.js",
    "server": "nodemon index.js",
    "client": "npm run start --prefix client",
    "dev": "concurrently \"npm run server\" \"npm run client\"",
    "heroku-postbuild": "NPM_CONFIG_PRODUCTION=false npm install --prefix client && npm run build --prefix client"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "body-parser": "^1.19.0",
    "concurrently": "^5.3.0",
    "cookie-parser": "^1.4.5",
    "cookie-session": "^1.4.0",
    "cors": "^2.8.5",
    "express": …
Run Code Online (Sandbox Code Playgroud)

node.js package.json dependency-tree npm-audit npm-vulnerabilities

20
推荐指数
2
解决办法
2万
查看次数