当我尝试使用“cnpm install”时,平台不支持的原因是什么?

时间:2017-05-20 06:07:11

标签: node.js

在这种情况下,cnpm是“npm”的中文爱迪生,它只是npm的镜像。这是我的package.json文件。

  "devDependencies": {
    "autoprefixer-loader": "^2.0.0",
    "babel": "^6.23.0",
    "babel-core": "^6.23.1",
    "babel-loader": "^6.2.4",
    "babel-plugin-transform-runtime": "^6.12.0",
    "babel-preset-es2015": "^6.9.0",
    "babel-runtime": "^6.11.6",
    "css-loader": "^0.23.1",
    "extract-text-webpack-plugin": "^2.0.0",
    "file-loader": "^0.8.5",
    "html-loader": "^0.3.0",
    "html-webpack-plugin": "^2.28.0",
    "style-loader": "^0.13.1",
    "url-loader": "^0.5.7",
    "vue-hot-reload-api": "^1.3.3",
    "vue-html-loader": "^1.2.3",
    "vue-loader": "^11.0.0",
    "vue-style-loader": "^1.0.0",
    "vue-template-compiler": "^2.2.1",
    "webpack": "^2.2.1",
    "webpack-dev-server": "^2.4.1",
    "webpack-merge": "^3.0.0",
    "eslint": "^3.12.2",
    "eslint-plugin-html": "^1.7.0"
  }

当我尝试“cnpm install”时,控制台说:

platform unsupported babel-loader@6.4.1 › webpack@2.5.1 › watchpack@1.3.1 › chokidar@1.7.0 › fsevents@^1.0.0 Package require os(darwin) no   t compatible with your platform(win32)

我可以保证这不是“cnpm”的原因,但我不知道为什么会这样。

0 个答案:

没有答案