エラーメッセージが一気に表示され、
何から手をつけたらいいか分からず、困っています。。。。
前提・実現したいこと
laravelにおいて、cssのコンパイルができるようにしたい
発生している問題・エラーメッセージ
npm run watchを実行すると、下記のエラーが表示される
npm ERR! code ELIFECYCLE npm ERR! errno 1 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 "--watch"` npm ERR! Exit status 1 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/hoge/.npm/_logs/2019-11-30T09_55_16_903Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @ watch: `npm run development -- --watch` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @ watch 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/hoge/.npm/_logs/2019-11-30T09_55_16_927Z-debug.log
2019-11-30T09_55_16_927Z-debug.log
0 info it worked if it ends with ok 1 verbose cli [ '/Users/hoge/.nodebrew/node/v8.9.3/bin/node', 1 verbose cli '/Users/hoge/.nodebrew/current/bin/npm', 1 verbose cli 'run', 1 verbose cli 'watch' ] 2 info using npm@5.5.1 3 info using node@v8.9.3 4 verbose run-script [ 'prewatch', 'watch', 'postwatch' ] 5 info lifecycle @~prewatch: @ 6 info lifecycle @~watch: @ 7 verbose lifecycle @~watch: unsafe-perm in lifecycle true 8 verbose lifecycle @~watch: PATH: /Users/hoge/.nodebrew/node/v8.9.3/lib/node_modules/npm/bin/node-gyp-bin:/Applications/MAMP/htdocs/laravel/node_modules/.bin:/Users/hoge/.nodebrew/current/bin:/Applications/MAMP/bin/php/php7.3.1/bin:/Users/hoge/.rbenv/shims:/Users/hoge/.nodebrew/current/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/hoge/.nodebrew/current/bin:/Users/hoge/.nodebrew/current/bin 9 verbose lifecycle @~watch: CWD: /Applications/MAMP/htdocs/laravel 10 silly lifecycle @~watch: Args: [ '-c', 'npm run development -- --watch' ] 11 silly lifecycle @~watch: Returned: code: 1 signal: null 12 info lifecycle @~watch: Failed to exec watch script 13 verbose stack Error: @ watch: `npm run development -- --watch` 13 verbose stack Exit status 1 13 verbose stack at EventEmitter.<anonymous> (/Users/hoge/.nodebrew/node/v8.9.3/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:280:16) 13 verbose stack at emitTwo (events.js:126:13) 13 verbose stack at EventEmitter.emit (events.js:214:7) 13 verbose stack at ChildProcess.<anonymous> (/Users/hoge/.nodebrew/node/v8.9.3/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 13 verbose stack at emitTwo (events.js:126:13) 13 verbose stack at ChildProcess.emit (events.js:214:7) 13 verbose stack at maybeClose (internal/child_process.js:925:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5) 14 verbose pkgid @ 15 verbose cwd /Applications/MAMP/htdocs/laravel 16 verbose Darwin 19.0.0 17 verbose argv "/Users/hoge/.nodebrew/node/v8.9.3/bin/node" "/Users/hoge/.nodebrew/current/bin/npm" "run" "watch" 18 verbose node v8.9.3 19 verbose npm v5.5.1 20 error code ELIFECYCLE 21 error errno 1 22 error @ watch: `npm run development -- --watch` 22 error Exit status 1 23 error Failed at the @ watch script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 1, true ]
試したこと
下記のサイトの内容は実行しました。
参考サイト
回答1件
あなたの回答
tips
プレビュー