Skip to content

Commit

Permalink
Support setting custom NPM version
Browse files Browse the repository at this point in the history
  • Loading branch information
ramijarrar committed Oct 29, 2016
1 parent 3d972ad commit f89fb17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Git-based Meteor deployments on Azure App Service
* ROOT_URL - http://{sitename}.azurewebsites.net or your custom domain if you've set that up
* METEOR_SETTINGS - (Optional: e.g from your settings.json)
* WEBSITE_NODE_DEFAULT_VERSION - (Node version bundled with your current Meteor release)
* METEOR_AZURE_NPM_VERSION - (NPM version bundled with your current Meteor release)

### Setup instructions

Expand Down
5 changes: 5 additions & 0 deletions script/.config/azure/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ selectNodeVersion () {

selectNodeVersion

# Set NPM version
echo meteor-azure: Setting NPM version
eval $NPM_CMD install -g npm@"$METEOR_AZURE_NPM_VERSION"
exitWithMessageOnError "setting npm version failed"

# Ensure working directory is clean
if [ -d "$LOCALAPPDATA\meteor-azure" ]; then
rm -rf "$LOCALAPPDATA\meteor-azure"
Expand Down

0 comments on commit f89fb17

Please sign in to comment.