ZEIT on Twitter, August 8, 2019, a picture was posted:
Inside it see a line of commands: npm create react-app site
,
npm create
? Isn’t it just yarn create
?
We all know that yarn create react-app my-app
is equal to npx create-react-app my-app
,
But when did the npm create
command come out?
Decisive of Google, but nothing was found.
Sure enough, the npm official documentation, but still found nothing.
Is this wrong? In fact, some people also think about it under that Twitter:
of course not!
I thought that I might be the first person on the Internet to write an article about this command. There is still a little excitement (of course, it may have been written earlier, but it has not been included in Google. 🤧
Can’t find it all over the Internet. I have encountered this situation before, I can only think of one place: CHANGELOG
Decisively went to the npm cli CHANGELOG site and finally found out the situation:
Look: https://github.com/npm/cli/blob/latest/CHANGELOG.md#extended-npm-init-scaffolding
More than a year ago, on April 20, 2018, v6.0.0 was released, which is an alias for npm init
, but there is no document in the init page so far, and I don’t know how they think.
In short, that’s it, npm create
has the same effect as yarn create
, just use it~
Well, it’s over. 😑