mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Merge pull request #7279 from 4commerce-technologies-AG/devel-fix-generate-dev-bundle
Finalize replacement NPM@3 at generate-dev-bundle.sh script.
This commit is contained in:
@@ -136,11 +136,8 @@ mv BrowserStackLocal "$DIR/bin/"
|
||||
# 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" != "3.9.6" ]; then
|
||||
if [ "$INSTALLED_NPM_VERSION" != "$NPM_VERSION" ]; 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"
|
||||
echo "its own directory."
|
||||
echo "Update this check if you know what you're doing."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user