请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

$ npm install webpack -g npm 安装失败

$ npm install webpack -g

npm WARN engine webpack@4.10.2: wanted: {“node”:">=6.11.5"} (current: {“node”:“4.4.7”,“npm”:“2.15.8”})

npm WARN engine chrome-trace-event@0.1.3: wanted: {“node”:">=6.0"} (current: {“node”:“4.4.7”,“npm”:“2.15.8”})

npm WARN engine schema-utils@0.4.5: wanted: {“node”:">= 4.8.0 || >= 6.9.0 || >= 8.9.0"} (current: {“node”:“4.4.7”,“npm”:“2.15.8”})

npm WARN engine tapable@1.0.0: wanted: {“node”:">=6"} (current: {“node”:“4.4.7”,“npm”:“2.15.8”})

npm WARN engine uglifyjs-webpack-plugin@1.2.5: wanted: {“node”:">= 4.8 < 5.0.0 || >= 5.10"} (current: {“node”:“4.4.7”,“npm”:“2.15.8”})

npm WARN engine enhanced-resolve@4.0.0: wanted: {“node”:">=6.11.5"} (current: {“node”:“4.4.7”,“npm”:“2.15.8”})

npm WARN engine punycode@2.1.1: wanted: {“node”:">=6"} (current: {“node”:“4.4.7”,“npm”:“2.15.8”})

npm WARN optional dep failed, continuing fsevents@1.2.4

npm WARN engine atob@2.1.1: wanted: {“node”:">= 4.5.0"} (current: {“node”:“4.4.7”,“npm”:“2.15.8”})

npm WARN engine atob@2.1.1: wanted: {“node”:">= 4.5.0"} (current: {“node”:“4.4.7”,“npm”:“2.15.8”})

C:\Users\Administrator\AppData\Roaming\npm\webpack -> C:\Users\Administrator\AppData\Roaming\npm\node_modules\webpack\bin\webpack.js

webpack@4.10.2 C:\Users\Administrator\AppData\Roaming\npm\node_modules\webpack

├── loader-runner@2.3.0

├── json-parse-better-errors@1.0.2

├── chrome-trace-event@0.1.3

├── schema-utils@0.4.5

├── acorn-dynamic-import@3.0.0

├── acorn@5.5.3

├── ajv-keywords@3.2.0

├── tapable@1.0.0

├── neo-async@2.5.1

├── enhanced-resolve@4.0.0 (graceful-fs@4.1.11)

├── loader-utils@1.1.0 (emojis-list@2.1.0, big.js@3.2.0, json5@0.5.1)

├── mkdirp@0.5.1 (minimist@0.0.8)

├── eslint-scope@3.7.1 (estraverse@4.2.0, esrecurse@4.2.1)

├── memory-fs@0.4.1 (errno@0.1.7, readable-stream@2.3.6)

├── @webassemblyjs/wasm-parser@1.5.9 (@webassemblyjs/helper-api-error@1.5.9, @webassemblyjs/helper-wasm-bytecode@1.5.9, @webassemblyjs/leb128@1.5.9, @webassemblyjs/ieee754@1.5.9)

├── @webassemblyjs/wasm-opt@1.5.9 (@webassemblyjs/helper-buffer@1.5.9, @webassemblyjs/wasm-gen@1.5.9, debug@3.1.0)

├── webpack-sources@1.1.0 (source-list-map@2.0.0, source-map@0.6.1)

├── @webassemblyjs/wasm-edit@1.5.9 (@webassemblyjs/helper-wasm-bytecode@1.5.9, @webassemblyjs/helper-buffer@1.5.9, @webassemblyjs/helper-wasm-section@1.5.9, @webassemblyjs/wasm-gen@1.5.9, debug@3.1.0, @webassemblyjs/wast-printer@1.5.9)

├── ajv@6.5.0 (fast-deep-equal@2.0.1, json-schema-traverse@0.3.1, fast-json-stable-stringify@2.0.0, uri-js@4.2.2)

├── @webassemblyjs/ast@1.5.9 (mamacro@0.0.3, @webassemblyjs/helper-wasm-bytecode@1.5.9, @webassemblyjs/helper-module-context@1.5.9, debug@3.1.0, @webassemblyjs/wast-parser@1.5.9)

├── micromatch@3.1.10 (arr-diff@4.0.0, array-unique@0.3.2, kind-of@6.0.2, fragment-cache@0.2.1, object.pick@1.3.0, nanomatch@1.2.9, define-property@2.0.2, regex-not@1.0.2, to-regex@3.0.2, extend-shallow@3.0.2, braces@2.3.2, extglob@2.0.4, snapdragon@0.8.2)

├── node-libs-browser@2.1.0 (tty-browserify@0.0.0, https-browserify@1.0.0, path-browserify@0.0.0, punycode@1.4.1, constants-browserify@1.0.0, domain-browser@1.2.0, os-browserify@0.3.0, process@0.11.10, assert@1.4.1, querystring-es3@0.2.1, string_decoder@1.1.1, stream-browserify@2.0.1, events@1.1.1, timers-browserify@2.0.10, readable-stream@2.3.6, util@0.10.3, vm-browserify@0.0.4, console-browserify@1.1.0, url@0.11.0, stream-http@2.8.2, buffer@4.9.1, browserify-zlib@0.2.0, crypto-browserify@3.12.0)

├── uglifyjs-webpack-plugin@1.2.5 (serialize-javascript@1.5.0, source-map@0.6.1, uglify-es@3.3.9, worker-farm@1.6.0, find-cache-dir@1.0.0, cacache@10.0.4)

└── watchpack@1.6.0 (graceful-fs@4.1.11, chokidar@2.0.3)

正在回答 回答被采纳积分+3

1回答

Rosen 2018-10-07 21:53:16

npm install webpack@1.15.0 -g

加着版本号装

0 回复 有任何疑惑可以回复我~
  • 老师我也遇到装不了webpack的情况   全局安装也是加这版本号装的  还是装不上
    回复 有任何疑惑可以回复我~ 2019-03-11 19:46:38
  • 这一章搭建脚手架  学了好几天了  不是这里出问题就是那里出问题   学的好吃力呀   老师有什么好的建议吗
    回复 有任何疑惑可以回复我~ 2019-03-11 19:48:27
  • 你可以试试把所有插件都卸了再重新按着指定版本号安装一下。群公告里有个学前必读,不知道看到了没?另外第三章也是这个课程的难点,熬过去就好了。遇着大坑群里问问或直接私信我
    回复 有任何疑惑可以回复我~ 2019-03-15 08:07:51
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信