3 ms·
"(npx comes with npm 5.2+ and higher, see instructions for older npm versions)" To me it seems obvious that you use npx unless you're stuck with an older npm v
by brlewis 8y ago
"(npx comes with npm 5.2+ and higher, see instructions for older npm versions)"
To me it seems obvious that you use npx unless you're stuck with an older npm version, or you're already using yarn.
- runako 8y agoWhy would that be obvious to a person new to the ecosystem? npx and npm coexist. They have overlap in functionality. They are both referenced in the instructions the user is reading. Why couldn't they just write that you should use npx if you have it? Or, since it works using npm too, why not just tell everyone to use npm? There are so many non-obvious things here. Why do we run some binaries via npm and others via npx? If you're going to use npm to run all the commands after create-react-app, why include npx in the document at all? If you use npx to create an app per the directions, why does the animated output tell you to use yarn to start it (and not npm as in the text immediately above)? Why does the animation then ignore the output and use npm to start it? The answers to these types of questions may be known to someone immersed in the ecosystem, but the presentation on the official page is definitely muddled and makes the answers far from obvious.