Vue.jsの勉強のためにVueCLIをインストールするところまではできましたが、プロジェクトを作成するときにvue create vue-app
を実行すると以下のようなエラーが発生します。
tatsuya@t-Mac develop % vue create vue-app Vue CLI v4.5.8 ? Please pick a preset: Manually select features ? Check the features needed for your project: Choose Vue version, Babel, TS, PWA , Router, Vuex, CSS Pre-processors, Linter, Unit, E2E ? Choose a version of Vue.js that you want to start the project with 3.x (Previe w) ? Use class-style component syntax? Yes ? Use Babel alongside TypeScript (required for modern mode, auto-detected polyfi lls, transpiling JSX)? No ? Use history mode for router? (Requires proper server setup for index fallback in production) Yes ? Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supported by default): Sass/SCSS (with dart-sass) ? Pick a linter / formatter config: Prettier ? Pick additional lint features: Lint on save ? Pick a unit testing solution: Jest ? Pick an E2E testing solution: Cypress ? Where do you prefer placing config for Babel, ESLint, etc.? In package.json ? Save this as a preset for future projects? No Vue CLI v4.5.8 ✨ Creating project in /Users/tatsuya/Desktop/develop/vue-app. ⚙️ Installing CLI plugins. This might take a while... yarn install v1.22.10 info No lockfile found. [1/4] ???? Resolving packages... [2/4] ???? Fetching packages... [3/4] ???? Linking dependencies... [4/4] ???? Building fresh packages... [1/6] ⠄ fsevents [-/6] ⠄ waiting... [6/6] ⠄ cypress [-/6] ⠄ waiting... info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. error /Users/tatsuya/Desktop/develop/vue-app/node_modules/deasync: Command failed. Exit code: 1 Command: node ./build.js Arguments: Directory: /Users/tatsuya/Desktop/develop/vue-app/node_modules/deasync Output: gyp info it worked if it ends with ok gyp info using node-gyp@7.1.2 gyp info using node@15.0.1 | darwin | x64 gyp info find Python using Python version 2.7.16 found at "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python" gyp info spawn /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python gyp info spawn args [ gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp info spawn args '-I', gyp info spawn args '/Users/tatsuya/Desktop/develop/vue-app/node_modules/deasync/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/Users/tatsuya/Library/Caches/node-gyp/15.0.1/include/node/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/Users/tatsuya/Library/Caches/node-gyp/15.0.1', gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=/Users/tatsuya/Library/Caches/node-gyp/15.0.1/<(target_arch)/node.lib', gyp info spawn args '-Dmodule_root_dir=/Users/tatsuya/Desktop/develop/vue-app/node_modules/deasync', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' gyp info spawn args ] No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'. No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'. No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'. gyp info spawn make gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist Use `sudo xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools, or use `xcode-select --install` to install the standalone command line developer tools. See `man xcode-select` for more details. gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (node:events:327:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:277:12) gyp ERR! System Darwin 19.6.0 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/tatsuya/Desktop/develop/vue-app/node_modules/deasync ERROR command failed: yarn tatsuya@t-Mac develop %
nodeやyarnは最新のバージョンを使っています。
このようなエラー対処をご存知の方は解決策を教えて欲しいです。
よろしくお願いいたします。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。