質問内容・実現したいこと
swiper機能の導入を行いたいです。
$ yarn add swiper
実行時にエラーが起きました。
$ yarn install
実行時も同様のエラー
$ yarn upgrade
実行するも同様のエラー
bash
1$ yarn -v 21.22.10 3 4$ Node -v 5v16.4.1
端末
mac book air 2018 バージョン11.6
現状発生している問題・エラーメッセージ
bash
1$ yarn add swiper 2 3yarn add v1.22.10 4[1/5] ???? Validating package.json... 5[2/5] ???? Resolving packages... 6[3/5] ???? Fetching packages... 7[4/5] ???? Linking dependencies... 8warning " > @babel/preset-react@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0". 9warning "@babel/preset-react > @babel/plugin-transform-react-display-name@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0". 10warning "@babel/preset-react > @babel/plugin-transform-react-jsx@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0". 11warning "@babel/preset-react > @babel/plugin-transform-react-jsx-self@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0". 12warning "@babel/preset-react > @babel/plugin-transform-react-jsx-source@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0". 13warning "@babel/preset-react > @babel/plugin-transform-react-jsx > @babel/plugin-syntax-jsx@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0". 14warning " > compression-webpack-plugin@1.1.12" has unmet peer dependency "webpack@^2.0.0 || ^3.0.0 || ^4.0.0". 15warning " > extract-text-webpack-plugin@3.0.2" has unmet peer dependency "webpack@^3.1.0". 16warning " > rails-erb-loader@5.5.2" has unmet peer dependency "webpack@^2.0.0 || >= 3.0.0-rc.0 || ^3.0.0". 17warning " > sass-loader@6.0.7" has unmet peer dependency "webpack@^2.0.0 || ^3.0.0 || ^4.0.0". 18warning " > webpack-manifest-plugin@1.3.2" has unmet peer dependency "webpack@1 || 2 || 3". 19warning " > webpack-dev-server@3.10.1" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0". 20warning "webpack-dev-server > webpack-dev-middleware@3.7.2" has unmet peer dependency "webpack@^4.0.0". 21[5/5] ???? Building fresh packages... 22[1/5] ⠈ fsevents 23[-/5] ⠈ waiting... 24[3/5] ⠁ node-sass 25[-/5] ⠁ waiting... 26error /Users/ Command failed. 27Exit code: 1 28Command: node scripts/build.js 29Arguments: 30Directory: node_modules/node-sass 31Output: 32gyp info it worked if it ends with ok 33gyp verb cli [ 34gyp verb cli '/usr/local/Cellar/node/16.4.1/bin/node', 35gyp verb cli 'ファイル名。。node_modules/node-gyp/bin/node-gyp.js', 36gyp verb cli 'rebuild', 37gyp verb cli '--verbose', 38gyp verb cli '--libsass_ext=', 39gyp verb cli '--libsass_cflags=', 40gyp verb cli '--libsass_ldflags=', 41gyp verb cli '--libsass_library=' 42gyp verb cli ] 43gyp info using node-gyp@3.8.0 44gyp info using node@16.4.1 | darwin | x64 45gyp verb command rebuild [] 46gyp verb command clean [] 47gyp verb clean removing "build" directory 48gyp verb command configure [] 49gyp verb check python checking for Python executable "/usr/bin/python" in the PATH 50gyp verb `which` succeeded /usr/bin/python /usr/bin/python 51gyp verb check python version `/usr/bin/python -c "import sys; print "2.7.16 52gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j 53gyp verb get node dir no --target version specified, falling back to host node version: 16.4.1 54gyp verb command install [ '16.4.1' ] 55gyp verb install input version string "16.4.1" 56gyp verb install installing version: 16.4.1 57gyp verb install --ensure was passed, so won't reinstall if already installed 58', 59gyp info spawn args '-Dnode_engine=v8', 60gyp info spawn args '--depth=.', 61gyp info spawn args '--no-parallel', 62gyp info spawn args '--generator-output', 63gyp info spawn args 'build', 64gyp info spawn args '-Goutput_dir=.' 65gyp info spawn args ] 66No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'. 67 68No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'. 69 70No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'. 71 72gyp: No Xcode or CLT version detected! 73gyp ERR! configure error 74gyp ERR! stack Error: `gyp` failed with exit code: 1 75gyp ERR! stack at ChildProcess.onCpExit (/Users/mark_naito/workspace/runteq/RUNTEQ_advanced/3085_mmmaaarrrkkk000_runteq_curriculum_advanced/node_modules/node-gyp/lib/configure.js:345:16) 76gyp ERR! stack at ChildProcess.emit (node:events:394:28) 77gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) 78gyp ERR! System Darwin 20.6.0 79gyp ERR! command "/usr/local/Cellar/node/16.4.1/bin/node" "/ ファイル名。。node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="node_modules/node-sass 80gyp ERR! node -v v16.4.1 81
何かアドバイスを頂けたら幸いです。
よろしくお願いします。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。