npm ERR! missing script: dev_win
来源:3-8 webpack-dev-server
LQiao
2019-09-05
{
"name": "shop_mall",
"version": "1.0.0",
"description": "前端项目",
"main": "webpack.config.js",
"scripts": {
"dev": "./node_modules/.bin/webpack-dev-server",
"dev_win": "./node_modules/.bin/webpack-dev-server",
"dist": "WEBPACK_ENV=online ./node_modules/.bin/webpack -p",
"dist_win": "set WEBPACK_ENV=online&& ./node_modules/.bin/webpack -p"
},
"dependencies": {
"webpack-cli": "^3.3.7",
"webpack": "^4.39.3"
},
"devDependencies": {
"css-loader": "^3.2.0",
"extract-text-webpack-plugin": "^4.0.0-beta.0",
"file-loader": "^4.2.0",
"html-loader": "^0.5.5",
"html-webpack-plugin": "^3.2.0",
"style-loader": "^1.0.0",
"url-loader": "^2.1.0",
"webpack-dev-server": "^3.8.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git@gitee.com:lqgod/shop-mall.git"
},
"author": "Tony",
"license": "ISC"
}
报错为
npm ERR! missing script : dev_win
写回答
1回答
-
Rosen
2019-09-05
你执行的是什么命令?npm run dev_win才对
00
相似问题