0
新しいlaravel 5.4のインストールでnpm run dev
を実行すると、次のエラーが発生する。それを越える方法を理解するのに役立つ必要があります。npm run devを実行すると新しいlaravel 5.4のインストールにエラーが発生する
> @ dev /Users/rjacobsen/development/private/projects/laravel-54 > npm run development > @ development /Users/rjacobsen/development/private/projects/laravel-54 > cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js 95% emitting ERROR Failed to compile with 2 errors 8:59:48 AM These dependencies were not found: * /Users/rjacobsen/development/private/projects/laravel-54/resources/assets/js/app.js in multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss * /Users/rjacobsen/development/private/projects/laravel-54/resources/assets/sass/app.scss in multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss To install them, you can run: npm install --save /Users/rjacobsen/development/private/projects/laravel-54/resources/assets/js/app.js /Users/rjacobsen/development/private/projects/laravel-54/resources/assets/sass/app. Asset Size Chunks Chunk Names /js/app.js 2.99 kB 0 [emitted] /js/app mix-manifest.json 32 bytes [emitted] npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! @ development: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js` npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the @ development script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /Users/rjacobsen/.npm/_logs/2017-07-13T12_59_49_172Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! @ dev: `npm run development` npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the @ dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /Users/rjacobsen/.npm/_logs/2017-07-13T12_59_49_202Z-debug.log
どのノードのバージョンを使用していますか? – Sridhar
私はバージョン8.1.4を使用しています – user1013129
名前に ' - 'が付いたvanilla laravelプロジェクトはノード8.1.4でうまく動作します。 'ERROR 2エラーでコンパイルできませんでした 'と言うので' resources/assets/js/app.js'のJSエラーがないかどうかチェックできます – Sridhar