npm不建议不在package.json文件中的软件包发出警告

时间:2018-11-20 00:19:34

标签: javascript node.js npm

我正在尝试为Exercism JavaScript tutorial设置工作文件夹,当我运行npm install命令时,我收到以下消息

  

npm WARN已弃用circular-json@0.3.3:CircularJSON仅在维护中,flatted是其后续版本。   npm WARN不推荐使用kleur@2.0.2:如果您希望使用旧语法,请升级到kleur @ 3或迁移到“ ansi-colors”。访问https://github.com/lukeed/kleur/releases/tag/v3.0.0\以获得迁移路径。

当我查看package.json文件时,没有CircularJSON或kleur,所以我想知道为什么会收到警告,并且npm并未安装其中的软件包。这是package.json文件

{
  "name": "exercism-javascript",
  "version": "0.0.0",
  "description": "Exercism exercises in Javascript.",
  "author": "Katrina Owen",
  "private": true,
  "repository": {
      "type": "git",
      "url": "https://github.com/exercism/javascript"
  },
  "devDependencies": {
      "babel-eslint": "^10.0.1",
      "babel-jest": "^21.2.0",
      "babel-plugin-transform-builtin-extend": "^1.1.2",
      "babel-preset-env": "^1.7.0",
      "eslint": "^5.6.0",
      "eslint-config-airbnb-base": "^13.1.0",
      "eslint-plugin-import": "^2.14.0",
      "jest": "^23.6.0"
  },
  "jest": {
      "modulePathIgnorePatterns": [
      "package.json"
    ]
 },
 "babel": {
      "presets": [
       [
          "env",
      {
      "targets": [
        {
          "node": "current"
        }
      ]
    }
  ]
],
"plugins": [
  [
    "babel-plugin-transform-builtin-extend",
    {
      "globals": [
        "Error"
      ]
    }
  ],
      [
        "transform-regenerator"
      ]
    ]
  },
"scripts": {
"test": "jest --no-cache ./*",
"watch": "jest --no-cache --watch ./*",
"lint": "eslint .",
"lint-test": "eslint . && jest --no-cache ./* "
},
"eslintConfig": {
"parser": "babel-eslint",
"parserOptions": {
  "ecmaVersion": 7,
  "sourceType": "module"
},
"env": {
  "es6": true,
  "node": true,
  "jest": true
},
"extends": "airbnb-base",
"rules": {
  "import/no-unresolved": "off",
  "import/extensions": "off",
  "import/prefer-default-export": "off",
  "import/no-default-export": "off"
  }
},
"license": "MIT"
}

我该如何解决?

0 个答案:

没有答案