-
Notifications
You must be signed in to change notification settings - Fork 291
Updating Node.js package dependencies
Joe Cheng edited this page Feb 22, 2018
·
1 revision
Follow these instructions to upgrade Node.js package dependencies.
- Make sure you can build from source.
- Show the list of outdated dependencies using
bin/npm outdated
. - For each outdated dependency, run
bin/npm install --save [packagename]@*
. For example, if the package isexpress
, you'd dobin/npm install --save express@*
. A couple of exceptions:-
unixgroups
should never be upgraded; the fork we build is newer than the abandoned npm project. -
log4js
must be installed with--no-optional
(bin/npm install --save --no-optional log4js@*
). Not only does this save us from installing tons and tons of packages we don't need, but one of the sub-sub-sub-packages uses a possibly non-GPL compatible license.
-
- Run tests with
node_modules/.bin/mocha test
. - Ensure preflight (
tools/preflight.sh
) passes. - Perform manual testing on Shiny Server to ensure you haven't broken anything.
- Commit!