How do you prevent install of “devDependencies” NPM modules for Node.js (package.json)?
The npm install command will install the devDependencies along other dependencies when run inside a package directory, in a development environment (the default). In version 8.x and above use –omit=dev flag to install only regular dependencies: npm install –omit=dev This will install only dependencies, and not devDependencies, regardless of the value of the NODE_ENV environment … Read more