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
user@MacBook-Air Appname % yarn install --check-files yarn install v1.22.10 [1/4] ???? Resolving packages... [2/4] ???? Fetching packages... [3/4] ???? Linking dependencies... warning " > webpack-dev-server@3.11.2" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0". warning "webpack-dev-server > webpack-dev-middleware@3.7.3" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0". [4/4] ???? Building fresh packages... [-/3] ⠐ waiting... [-/3] ⠐ waiting... error /Users/user/projects/Appname/node_modules/node-sass: Command failed. Exit code: 1 Command: node scripts/build.js Arguments: Directory: /Users/user/projects/Appname/node_modules/node-sass Output: Building: /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= gyp info it worked if it ends with ok ・ ・ ・ 下に続きます 1 error generated. make: *** [Release/obj.target/binding/src/binding.o] Error 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/Users/user/projects/Appname/node_modules/node-gyp/lib/build.js:262:23) gyp ERR! stack at ChildProcess.emit (node:events:394:28) gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) gyp ERR! System Darwin 20.5.0 gyp 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=" gyp ERR! cwd /Users/user/projects/Appname/node_modules/node-sass gyp ERR! node -v v16.3.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok
・こちらを参考にして行ったがyarn install時に上記に記載してあるエラーと全く同じ状態になる
まだ回答がついていません
会員登録して回答してみよう