chanshiyucx / aurora

An awesome blog theme
https://chanshiyu.com
373 stars 55 forks source link

项目启动出现错误 #44

Closed chunxiao01 closed 2 years ago

chunxiao01 commented 2 years ago

更新:

安装的node版本14.0.0再尝试可行! 可安装nvm进行node版本管理!

Version

node 16.14.0 npm 8.3.1

Error

执行 npm install 出现警告

npm WARN old lockfile The package-lock.json file was created with an old version of npm,
......

执行 npm start 出现错误

'vue-cli-service' 不是内部或外部命令,也不是可运行的程序或批处理文件。

package.json

{
  "name": "aurora",
  "version": "2.0.0",
  "description": "An awesome blog theme",
  "author": "蝉時雨 <me@chanshiyu.com>",
  "license": "MIT",
  "scripts": {
    "start": "npm run serve",
    "serve": "vue-cli-service serve",
    "build": "vue-cli-service build",
    "lint": "vue-cli-service lint"
  },
  "dependencies": {
    "@moefe/vue-aplayer": "^2.0.0-beta.5",
    "aos": "^3.0.0-beta.6",
    "clipboard": "^2.0.6",
    "core-js": "^3.6.5",
    "gitalk": "^1.6.2",
    "highlight.js": "^10.2.0",
    "katex": "^0.12.0",
    "leancloud-storage": "^4.6.1",
    "marked": "^1.1.1",
    "timeago.js": "^4.0.2",
    "vue": "^2.6.12",
    "vue-progressbar": "^0.7.5",
    "vue-router": "^3.4.3",
    "vuex": "^3.5.1",
    "zooming": "^2.1.1"
  },
  "devDependencies": {
    "@vue/cli-plugin-babel": "^4.5.4",
    "@vue/cli-plugin-eslint": "^4.5.4",
    "@vue/cli-plugin-router": "^4.5.4",
    "@vue/cli-plugin-vuex": "^4.5.4",
    "@vue/cli-service": "^4.5.4",
    "@vue/eslint-config-prettier": "^6.0.0",
    "babel-eslint": "^10.1.0",
    "eslint": "^7.8.1",
    "eslint-plugin-prettier": "^3.1.4",
    "eslint-plugin-vue": "^6.2.2",
    "node-sass": "^4.14.1",
    "prettier": "^2.1.1",
    "sass-loader": "^10.0.2",
    "vue-template-compiler": "^2.6.12"
  }
}