rails sをした際に以下のようなエラーが出ます
##エラー内容
user@MacBook-Air Appname % rails s => Booting Puma => Rails 6.0.3.7 application starting in development => Run `rails server --help` for more startup options error Couldn't find an integrity file error Found 1 errors. ======================================== Your Yarn packages are out of date! Please run `yarn install --check-files` to update. ======================================== To disable this check, please change `check_yarn_integrity` to `false` in your webpacker config file (config/webpacker.yml). yarn check v1.22.10 info Visit https://yarnpkg.com/en/docs/cli/check for documentation about this command. Exiting
試したこと
・yarn install --check-filesを実行したものの別のエラー発生↓
yarn
1user@MacBook-Air Appname % yarn install --check-files 2yarn install v1.22.10 3[1/4] ???? Resolving packages... 4[2/4] ???? Fetching packages... 5[3/4] ???? Linking dependencies... 6warning " > webpack-dev-server@3.11.2" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0". 7warning "webpack-dev-server > webpack-dev-middleware@3.7.3" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0". 8[4/4] ???? Building fresh packages... 9[-/3] ⠐ waiting... 10[-/3] ⠐ waiting... 11error /Users/user/projects/Appname/node_modules/node-sass: Command failed. 12Exit code: 1 13Command: node scripts/build.js 14Arguments: 15Directory: /Users/user/projects/Appname/node_modules/node-sass 16Output: 17Building: /usr/local/Cellar/node/16.3.0/bin/node /Users/user/projects/Appname/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library= 18gyp info it worked if it ends with ok 19・ 20・ 21・ 22下に続きます 231 error generated. 24make: *** [Release/obj.target/binding/src/binding.o] Error 1 25gyp ERR! build error 26gyp ERR! stack Error: `make` failed with exit code: 2 27gyp ERR! stack at ChildProcess.onExit (/Users/user/projects/Appname/node_modules/node-gyp/lib/build.js:262:23) 28gyp ERR! stack at ChildProcess.emit (node:events:394:28) 29gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) 30gyp ERR! System Darwin 20.5.0 31gyp ERR! command "/usr/local/Cellar/node/16.3.0/bin/node" "/Users/user/projects/Appname/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" 32gyp ERR! cwd /Users/user/projects/Appname/node_modules/node-sass 33gyp ERR! node -v v16.3.0 34gyp ERR! node-gyp -v v3.8.0 35gyp ERR! not ok 36
・こちらを参考にして行ったがyarn install時に上記に記載してあるエラーと全く同じ状態になる
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2021/06/26 08:05