LoginSignup
6
1

More than 3 years have passed since last update.

npx create-react-app で大文字の名前が使えなかった

Posted at

TodoApp(Todoアプリ)を作成しようと思い、

create-react-appで環境構築をしました。

$ npx create-react-app TodoApp

しかし、こんなエラーが。。。

Cannot create a project named "TodoApp" because of npm naming restrictions:

  * name can no longer contain capital letters

Please choose a different project name.
npm ERR! code 1
npm ERR! path /Users/sakatsumemasato/TodoApp
npm ERR! command failed
npm ERR! command sh -c create-react-app TodoApp

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/sakatsumemasato/.npm/_logs/2020-12-19T02_39_26_426Z-debug.log

翻訳すると
npmの翻訳制限のため、
「TodoApp」という名前でプロジェクトを作成できないみたいです。

そこでプロジェクトの名前を全て小文字にしました。

$ npx create-react-app todoapp2

Happy hacking!

作成できました。大文字はダメで、数字はオッケーみたいですね。

6
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
1