npm のバージョンが古い (7.x) 場合、ディレクトリ名にスペースなどがあるとエラーになりますね。
が、前の質問にも書いたように npm init する必要はないはずだし、その (4) はどこから出てきたのやら…。
npm init -y
を実行したところ以下のエラーが表示されました。
npm ERR! Invalid name: "typescript-for-javascript-developers-master (4)" npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\baseb\AppData\Roaming\npm-cache\_logs\2022-06-07T10_33_55_723Z-debug.log
解決策お分かりの方いましたらご回答お願いします。
あなたの回答
tips
プレビュー