webpack-cli init 初始化项目失败,是什么原因?
来源:3-1 由浅入深 webpack - 使用 webpack
手写的从前lpk
2018-09-24
The command moved into a separate package: @webpack-cli/init
Would you like to install init? (That will run npm install -D @webpack-cli/init) (yes/NO)yes
{ Error: Cannot find module 'G:\leading\my-webpack-project\node_modules@webpack-cli\init’
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Module.require (module.js:579:17)
at require (C:\Users\Administrator\AppData\Roaming\npm\node_modules\webpack-cli\node_modules\v8-compile-cache\v8-compile-cache.js:159:20)
at runCommand.then.result (C:\Users\Administrator\AppData\Roaming\npm\node_modules\webpack-cli\bin\prompt-command.js:90:15)
at
at process._tickCallback (internal/process/next_tick.js:188:7) code: ‘MODULE_NOT_FOUND’ }
npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.
npm WARN deprecated babel-preset-es2015@6.24.1: � Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!
npm ERR! Unexpected end of JSON input while parsing near ‘…,“0.1.3”:{“name”:"ast’
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2018-09-24T06_02_37_131Z-debug.log
1回答
-
qbaty
2018-09-28
这个包移到了一个新的单独的包里去了@webpack-cli/init , run npm install -D @webpack-cli/init
012019-02-04
相似问题