I'm new to nodejs and npm, just a question on dependencies and devDependencies
When I create a new react or Angular project, then I added a new required package by
npm install xxx --save
so the command above add the new package entry to "dependencies"
in package.json file.
then I run npm start
. The project is working OK and it is using the package I just installed.
But when I run npm start
, I'm still in development environment, isn't it? and if the entry is not added to devDependencies
, how can the application still run in development? I'm confused