Add explicit dependency on the npm version we build our node fork with

This commit is contained in:
Martijn Walraven
2015-07-24 14:04:48 -07:00
parent cb681e595f
commit e88e4a2837
2 changed files with 4 additions and 1 deletions

View File

@@ -20,6 +20,9 @@ var packageJson = {
// Version is not important but is needed to prevent warnings.
version: "0.0.0",
dependencies: {
// Explicit dependency because we are replacing it with a bundled version
// and we want to make sure there are no dependencies on a higher version
npm: "1.4.28",
fibers: fibersVersion,
"meteor-babel": "0.4.4",
"meteor-promise": "0.4.0",

View File

@@ -176,7 +176,7 @@ rm -rf "$DIR/bin/npm3"
# Sanity check to see if we're not breaking anything by replacing npm
INSTALLED_NPM_VERSION=$(cat "$DIR/lib/node_modules/npm/package.json" |
xargs -0 node -e "console.log(JSON.parse(process.argv[1]).version)")
if [ "$INSTALLED_NPM_VERSION" != "1.3.4" ]; then
if [ "$INSTALLED_NPM_VERSION" != "1.4.28" ]; then
echo "Unexpected NPM version in lib/node_modules: $INSTALLED_NPM_VERSION"
echo "We will be replacing it with our own version because the bundled node"
echo "is built using PORTABLE=1, which makes npm look for node relative to"