0

我在网上下载了一份脚手架文件,修改了一些作者、版本号等信息,
但执行出现如图所示问题,怎么解决呢?
我试了npm update也没用。
QQ浏览器截图20191111095030.png
QQ浏览器截图20191111095049.png

【编辑,以下是package.json】

{
  "name": "cli3demo",
  "version": "1.0",
  "description": "H5",
  "author": "xjl",
  "license": "",
  "scripts": {
    "dev": "vue-cli-service serve --open --fix",
    "build:prod": "vue-cli-service build",
    "build:stage": "vue-cli-service build --mode staging",
    "preview": "node build/index.js --preview",
    "lint": "eslint --ext .js,.vue src",
    "test:unit": "jest --clearCache && vue-cli-service test:unit",
    "test:ci": "npm run lint && npm run test:unit",
    "svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml"
  },
  "dependencies": {
    "@antv/f2": "^3.4.1",
    "axios": "0.18.0",
    "fastclick": "^1.0.6",
    "lib-flexible": "^0.3.2",
    "lodash": "^4.17.15",
    "normalize.css": "7.0.0",
    "vant": "^2.2.5",
    "vue": "2.6.10",
    "vue-router": "3.0.6",
    "vuex": "3.1.0"
  },
  "devDependencies": {
    "@babel/core": "7.0.0",
    "@babel/register": "7.0.0",
    "@vue/cli-plugin-babel": "3.6.0",
    "@vue/cli-plugin-eslint": "3.6.0",
    "@vue/cli-plugin-unit-jest": "3.6.3",
    "@vue/cli-service": "3.6.0",
    "@vue/test-utils": "1.0.0-beta.29",
    "babel-core": "7.0.0-bridge.0",
    "babel-eslint": "10.0.1",
    "babel-jest": "23.6.0",
    "babel-plugin-import": "^1.11.2",
    "chalk": "2.4.2",
    "compression-webpack-plugin": "^3.0.0",
    "connect": "3.6.6",
    "eslint": "5.15.3",
    "eslint-plugin-vue": "5.2.2",
    "html-webpack-plugin": "3.2.0",
    "node-sass": "^4.9.0",
    "postcss-pxtorem": "^4.0.1",
    "runjs": "^4.3.2",
    "sass-loader": "^7.1.0",
    "script-ext-html-webpack-plugin": "2.1.3",
    "script-loader": "0.7.2",
    "serve-static": "^1.13.2",
    "svgo": "1.2.2",
    "vue-template-compiler": "2.6.10"
  },
  "engines": {
    "node": ">=8.9",
    "npm": ">= 3.0.0"
  },
  "browserslist": [
    "> 1%",
    "last 2 versions",
    "not ie <= 8"
  ]
}
11月11日提问
1 个回答
2

已采纳

报错提示的是 无效的版本号,你看下第三行代码,1.0 改为 1.0.0 试试看

撰写答案

推广链接