Difference between npm and npx create-react-app installation [closed]
I just used both npm and npx installers of the react-app on my Mac as outlined on a different post and I was wondering what the difference between the two was. They each created a package.json, package-lock.json, and node_modules folder. Can I delete the npm created outer files?
VSCode Folder
Solution 1:
The question has been perused and dissected in this stack overflow post Difference between npx and npm?. Basically, npx is used to download and execute resources and the packages are localized within your project. This helps to avoid the conflict that occurs when one version of a package in your project isn't compatible with the one in another project. So you can manage different projects without worrying about incompatibility of one with the other.