webpack-dev-server:两个版本的webpack-dev-server都试过了,还是不行
来源:3-8 webpack-dev-server
qq_烈阳不骄_0
2018-02-02
Administrator@PC201612301438 MINGW64 /d/git-fe/mmall-fe/mmall-fe (mmall_v1.0) $ npm install webpack-dev-server@1.15.0 -g npm WARN peerDependencies The peer dependency webpack@>=1.3.0 <3 included from w ebpack-dev-server will no npm WARN peerDependencies longer be automatically installed to fulfill the peerD ependency npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly. npm WARN peerDependencies The peer dependency webpack@^1.0.0 || ^2.0.0 || ^3.0.0 included from webpack-dev-middleware will no npm WARN peerDependencies longer be automatically installed to fulfill the peerD ependency npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly. npm WARN optional dep failed, continuing fsevents@1.1.3 > uglifyjs-webpack-plugin@0.4.6 postinstall C:\Users\Administrator\AppData\Roami ng\npm\node_modules\webpack-dev-server\node_modules\webpack\node_modules\uglifyj s-webpack-plugin > node lib/post_install.js C:\Users\Administrator\AppData\Roaming\npm\webpack-dev-server -> C:\Users\Admini strator\AppData\Roaming\npm\node_modules\webpack-dev-server\bin\webpack-dev-serv er.js npm ERR! Windows_NT 6.1.7601 npm ERR! argv "D:\\node.js\\node.exe" "D:\\node.js\\node_modules\\npm\\bin\\npm- cli.js" "install" "webpack-dev-server@1.15.0" "-g" npm ERR! node v4.4.7 npm ERR! npm v2.15.8 npm ERR! code EPEERINVALID npm ERR! peerinvalid The package webpack@3.10.0 does not satisfy its siblings' p eerDependencies requirements! npm ERR! peerinvalid Peer webpack-dev-server@1.15.0 wants webpack@>=1.3.0 <3 npm ERR! Please include the following file with any support request: npm ERR! D:\git-fe\mmall-fe\mmall-fe\npm-debug.log
2回答
-
应该是全局的webpack@3.10.0的问题,把全局webpack换成1.15.0试试
012018-02-05 -
qq_烈阳不骄_0
提问者
2018-02-02
Administrator@PC201612301438 MINGW64 /d/git-fe/mmall-fe/mmall-fe (mmall_v1.0)
$ npm install webpack-dev-server@1.16.5 -g
npm WARN peerDependencies The peer dependency webpack@>=1.3.0 <3 included from w ebpack-dev-server will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerD ependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency webpack@^1.0.0 || ^2.0.0 || ^3.0.0 included from webpack-dev-middleware will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerD ependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN optional dep failed, continuing fsevents@1.1.3
> uglifyjs-webpack-plugin@0.4.6 postinstall C:\Users\Administrator\AppData\Roami ng\npm\node_modules\webpack-dev-server\node_modules\webpack\node_modules\uglifyj s-webpack-plugin
> node lib/post_install.js
C:\Users\Administrator\AppData\Roaming\npm\webpack-dev-server -> C:\Users\Admini strator\AppData\Roaming\npm\node_modules\webpack-dev-server\bin\webpack-dev-serv er.js
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "D:\\node.js\\node.exe" "D:\\node.js\\node_modules\\npm\\bin\\npm- cli.js" "install" "webpack-dev-server@1.16.5" "-g"
npm ERR! node v4.4.7
npm ERR! npm v2.15.8
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package webpack@3.10.0 does not satisfy its siblings' p eerDependencies requirements!
npm ERR! peerinvalid Peer webpack-dev-server@1.16.5 wants webpack@>=1.3.0 <3
npm ERR! Please include the following file with any support request:
npm ERR! D:\git-fe\mmall-fe\mmall-fe\npm-debug.log{
"name": "mmall-fe",
"version": "1.0.0",
"description": "mmall前端代码",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git@gitee.com:happpywsymall/mmall-fe.git"
},
"author": "wsy",
"license": "ISC",
"devDependencies": {
"css-loader": "^0.28.9",
"extract-text-webpack-plugin": "^1.0.1",
"file-loader": "^0.11.1",
"html-loader": "^0.5.5",
"html-webpack-plugin": "^2.30.1",
"style-loader": "^0.20.1",
"url-loader": "^0.6.2",
"webpack": "^1.15.0",
"webpack-dev-server": "^1.15.0"
}
}00
相似问题