mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Add explicit dependency on the npm version we build our node fork with
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user