verbose stack Error:missing script:webpack

2211 ワード

1、エラー説明
0 info it worked if it ends with ok
1 verbose cli [ 'F:\
odejs\
ode.exe', 1 verbose cli 'F:\
odejs\
ode_modules\
pm\\bin\
pm-cli.js', 1 verbose cli 'run', 1 verbose cli 'webpack' ] 2 info using [email protected] 3 info using [email protected] 4 verbose stack Error: missing script: webpack 4 verbose stack at run (F:
odejs
ode_modules
pm\lib\run-script.js:155:19) 4 verbose stack at F:
odejs
ode_modules
pm\lib\run-script.js:63:5 4 verbose stack at F:
odejs
ode_modules
pm
ode_modules\read-package-json\read-json.js:115:5 4 verbose stack at F:
odejs
ode_modules
pm
ode_modules\read-package-json\read-json.js:418:5 4 verbose stack at checkBinReferences_ (F:
odejs
ode_modules
pm
ode_modules\read-package-json\read-json.js:373:45) 4 verbose stack at final (F:
odejs
ode_modules
pm
ode_modules\read-package-json\read-json.js:416:3) 4 verbose stack at then (F:
odejs
ode_modules
pm
ode_modules\read-package-json\read-json.js:160:5) 4 verbose stack at F:
odejs
ode_modules
pm
ode_modules\read-package-json\read-json.js:280:12 4 verbose stack at F:
odejs
ode_modules
pm
ode_modules\graceful-fs\graceful-fs.js:78:16 4 verbose stack at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3) 5 verbose cwd F:\WebstormProjects\euw\esa 6 verbose Windows_NT 6.1.7601 7 verbose argv "F:\
odejs\
ode.exe" "F:\
odejs\
ode_modules\
pm\\bin\
pm-cli.js" "run" "webpack" 8 verbose node v10.8.0 9 verbose npm v6.2.0 10 error missing script: webpack 11 verbose exit [ 1, true ]
2、エラーの原因
      コマンドnpm run webpackでwebpackを実行します.
F:\WebstormProjects\euw\esa>npm run webpack
npm ERR! missing script: webpack

npm ERR! A complete log of this run can be found in:
npm ERR!     F:
odejs
ode_cache\_logs\2018-10-15T03_02_03_095Z-debug.log
     vue.jsプロジェクトの中で、webpack.cmdファイルが見つかりませんでした.
3、解決策
(1)ダウンロードパッケージのwebpackがあるか確認する
(2)ない場合は、再ダウンロードが必要です.