npm install without dev dependencies

C++
npm i -D
npm install --only=prod
Source

Also in C++: