老师,我的npm命令执行有误,弄了好久都不可以,谢谢解答
来源:4-4 项目基础框架搭建(上)

复java_n
2021-09-30
错误:
拷贝过来的package.json文件
{
“name”: “litemall-vue”,
“version”: “0.1.0”,
“description”: “litemall-vue basing on vant–mobile-mall 0.1.0”,
“author”: “litemall linlinjava@163.com”,
“license”: “MIT”,
“private”: true,
“scripts”: {
“dev”: “vue-cli-service serve”,
“serve”: “vue-cli-service serve”,
“build”: “vue-cli-service build --mode production”,
“build:dep”: “vue-cli-service build --mode deployment”,
“build:prod”: “vue-cli-service build --mode production”,
“lint”: “vue-cli-service lint”
},
“dependencies”: {
"@chenfengyuan/vue-countdown": “^1.1.2”,
“axios”: “>=0.21.1”,
“dayjs”: “^1.7.7”,
“js-cookie”: “2.2.0”,
“lodash”: “^4.17.21”,
“vant”: “^2.0.6”,
“vue”: “^2.5.17”,
“vue-router”: “^3.0.1”,
“vuelidate”: “^0.7.4”,
“vuex”: “^3.4.0”
},
“devDependencies”: {
"@vue/cli-plugin-babel": “^3.0.5”,
"@vue/cli-plugin-eslint": “^3.0.5”,
"@vue/cli-service": “^3.0.5”,
"@vue/eslint-config-prettier": “^3.0.5”,
“babel-plugin-import”: “^1.9.1”,
“babel-plugin-lodash”: “^3.3.4”,
“node-sass”: “^4.9.3”,
“sass-loader”: “^7.1.0”,
“vue-template-compiler”: “^2.5.17”
},
“browserslist”: [
"> 1%",
“last 2 versions”,
“not ie <= 8”
]
}
这是mcshop目录下面的.json文件(注:这些都是按老师意思拷贝的,但是我看视频的时候老师的.json文件和我的josn文件内容还是有一些不一样,尝试了修改还是错的):
{
“private”: true,
“scripts”: {
“dev”: “npm run development”,
“development”: “mix”,
“watch”: “mix watch”,
“watch-poll”: “mix watch – --watch-options-poll=1000”,
“hot”: “mix watch --hot”,
“prod”: “npm run production”,
“production”: “mix --production”
},
“devDependencies”: {
“axios”: “^0.21”,
“laravel-mix”: “^6.0.6”,
“lodash”: “^4.17.19”,
“postcss”: “^8.1.14”
}
}
然后我把老师的json文件复制下来尝试了一下,出现了下面的问题
还是没有解决~~~~~
1回答
-
檀梵
2021-10-13
克隆下来的应该就可以,修改了什么内容吗
00
相似问题
回答 2
回答 3