Hello guys I have the following problem.
OS: Linux Mint 18
node ver. : 7.9.0
npm ver. : 4.2.0
Installed create-react-app as global package npm install -g create-react-app.
Calling create-react-app . results in the following error:
Could not create a project called "ReactJS" because of npm naming restrictions:
* name can no longer contain capital letters
Calling create-react-app reactjs works just fine.
This is expected. As it says, capital numbers are not allowed in npm package names. Since ultimately it creates an npm package (even if you don鈥檛 publish it), we follow the same restrictions.
Hope this helps.
user@host ~/test $ create-react-app
Please specify the project directory:
create-react-app <project-directory>
My point is that this is one of the ways that it should be used right. So if anyone picks it, he/she will experience the same problem. It should work right , not produce error. I'm using the tool as expected
create-react-app .
Are you inside a folder called ReactJS?
I guess we could convert the folder name to lowercase ourselves before creating a project.
O geez , I thought it was created by the tool. Indeed I was in this folder (left over from previous coding). Now it's clear. Sorry for the spam :).
Cheers
No worries! If this comes up with more people maybe we can make the tool smarter about it.
It would be nice to have it make the name of the project lower case.
~/git/MyProject $ create-react-app .
Creating new React app myproject.
...
Most helpful comment
No worries! If this comes up with more people maybe we can make the tool smarter about it.