$ npm install webpack -g npm 安装失败
来源:3-4 npm和webpack的初始化
喜欢萝卜
2018-10-07
$ 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)
1回答
-
Rosen
2018-10-07
npm install webpack@1.15.0 -g
加着版本号装
052019-03-19
相似问题