[buddypress-trac] [BuddyPress Trac] #7429: Update and fix all the NPM things
buddypress-trac
noreply at wordpress.org
Mon Jan 30 03:55:09 UTC 2017
#7429: Update and fix all the NPM things
------------------------------+-----------------------
Reporter: netweb | Owner: netweb
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 2.8
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: |
------------------------------+-----------------------
Comment (by netweb):
Via `npm help shrinkwrap` as the docs at
https://docs.npmjs.com/cli/shrinkwrap are out of date:
> ''Starting with npm v4.0.1, `devDependencies` are included when you run
`npm shrinkwrap` and follow the usual rules as to when they're installed.
As of npm v3.10.8, if you run `npm install --only=production` or `npm
install --production` with a shrinkwrap including your development
dependencies they won't be installed. Similarly, if the environment
variable `NODE_ENV` is production then they won't be installed. If you
need compatibility with versions of npm prior to v3.10.8 or otherwise
don't want them in your shrinkwrap you can exclude development
dependencies with: `npm shrinkwrap --only=prod` or `npm shrinkwrap
--production`.''
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7429#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list