Browse Source

:arrow_up: Upgrading dependencies.Vue模版编译器和Vue主版本保持一致,预安装依赖脚本优先使用cnpm

lishangbu 6 years ago
parent
commit
5f4121c277
1 changed files with 2 additions and 2 deletions
  1. 2 2
      package.json

+ 2 - 2
package.json

@@ -3,7 +3,7 @@
   "version": "3.2.0",
   "private": true,
   "scripts": {
-    "pre": "yarn --registry https://registry.npm.taobao.org || npm install --registry https://registry.npm.taobao.org ",
+    "pre": "cnpm install || yarn --registry https://registry.npm.taobao.org || npm install --registry https://registry.npm.taobao.org ",
     "dev": "vue-cli-service serve",
     "build": "vue-cli-service build",
     "lint": "vue-cli-service lint"
@@ -39,7 +39,7 @@
     "chai": "^4.1.2",
     "node-sass": "^4.9.0",
     "sass-loader": "^7.0.1",
-    "vue-template-compiler": "^2.5.17"
+    "vue-template-compiler": "^2.6.10"
   },
   "lint-staged": {
     "*.js": [