Q&A
前提
M1 Macbook Air の環境で
これからはじめるVue.js 3実践入門 を参考にしています。
が、vue createコマンドを実行しましたが、エラーが発生し、プロジェクトが作成できません。
(正確には、プロジェクトフォルダと、その中にpackage.jsonファイルのみが生成されている)
発生している問題・エラーメッセージ
✨ Creating project in /Users/shin/Desktop/prog_training/vue/testcli. 🗃 Initializing git repository... ERROR Error: spawn Unknown system error -86 Error: spawn Unknown system error -86 at ChildProcess.spawn (node:internal/child_process:413:11) at Object.spawn (node:child_process:757:9) at module.exports (/usr/local/lib/node_modules/@vue/cli/node_modules/execa/index.js:205:26) at Creator.run (/usr/local/lib/node_modules/@vue/cli/lib/Creator.js:282:12) at Creator.create (/usr/local/lib/node_modules/@vue/cli/lib/Creator.js:184:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async create (/usr/local/lib/node_modules/@vue/cli/lib/create.js:72:3)
試したこと
vue cliのインストール時に
sudo npm install -g @vue/cli
に以下のワーニングが出ましたので、webサイトを確認しましたが、治りませんでした。
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated apollo-datasource@3.3.2: The `apollo-datasource` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023). See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated apollo-server-plugin-base@3.7.1: The `apollo-server-plugin-base` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023). This package's functionality is now found in the `@apollo/server` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated npm WARN deprecated apollo-server-types@3.7.1: The `apollo-server-types` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023). This package's functionality is now found in the `@apollo/server` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. npm WARN deprecated apollo-server-errors@3.3.1: The `apollo-server-errors` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023). This package's functionality is now found in the `@apollo/server` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. npm WARN deprecated apollo-server-express@3.11.1: The `apollo-server-express` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023). This package's functionality is now found in the `@apollo/server` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. npm WARN deprecated apollo-server-env@4.2.1: The `apollo-server-env` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023). This package's functionality is now found in the `@apollo/utils.fetcher` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. npm WARN deprecated apollo-reporting-protobuf@3.3.3: The `apollo-reporting-protobuf` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023). This package's functionality is now found in the `@apollo/usage-reporting-protobuf` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. npm WARN deprecated subscriptions-transport-ws@0.11.0: The `subscriptions-transport-ws` package is no longer maintained. We recommend you use `graphql-ws` instead. For help migrating Apollo software to `graphql-ws`, see https://www.apollographql.com/docs/apollo-server/data/subscriptions/#switching-from-subscriptions-transport-ws For general help using `graphql-ws`, see https://github.com/enisdenjo/graphql-ws/blob/master/README.md npm WARN deprecated apollo-server-core@3.11.1: The `apollo-server-core` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023). This package's functionality is now found in the `@apollo/server` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details. changed 852 packages, and audited 853 packages in 4s 64 packages are looking for funding run `npm fund` for details 4 vulnerabilities (2 moderate, 2 high) To address all issues (including breaking changes), run: npm audit fix --force Run `npm audit` for details.
参考にしたサイト
https://masa-enjoy.com/vue-cli-4-install
私は初学者なので、古いvueは入っていませんが一応確認しています。
補足情報(FW/ツールのバージョンなど)
node.js 18.13.0
パッケージ版をインストールしていますので、再インストールもしましたが無理でした。
(学習を始めた頃はnodeが18.12.1でしたので)
https://blog.proglus.jp/5518/#homebrewnodejs
を参考に再インストールしました。
まとめ
web開発は初めてで、これに合わせてMacを購入しました。
JavaScriopt,HTML,CSS,Node.jsと少しずつ勉強していますが、周りに聞ける人が居ないので、心が折れかけています。
特に、プログラミング以前の「環境構築」でのエラーは、余計に手も足も出ないのでアドバイスを頂けると幸いです。
回答1件
下記のような回答は推奨されていません。
このような回答には修正を依頼しましょう。