You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a DevOps resource behind corporate firewall, npm install routinely times out due to test and dev dependencies (particularly cypress, which is a very large dependency). We would like to use npm install --omit=dev before running npm run build:prod to either build our own docker image or to deploy to a static web content PaaS.
The fix appears to be straightforward. In package.json move packages from devDependencies to (prod) dependencies which are not related to testing, linting, or dev tools.
I can provide a PR for this shortly, but I wanted to document the issue first.
The text was updated successfully, but these errors were encountered:
CharlesNadolski
added a commit
to CharlesNadolski/build-your-own-radar
that referenced
this issue
Oct 20, 2022
As a DevOps resource behind corporate firewall,
npm install
routinely times out due to test and dev dependencies (particularly cypress, which is a very large dependency). We would like to usenpm install --omit=dev
before runningnpm run build:prod
to either build our own docker image or to deploy to a static web content PaaS.The fix appears to be straightforward. In
package.json
move packages fromdevDependencies
to (prod)dependencies
which are not related to testing, linting, or dev tools.I can provide a PR for this shortly, but I wanted to document the issue first.
The text was updated successfully, but these errors were encountered: