Skip to content

Conversation

@maxxxymum
Copy link

Briefing

web.sh script was not working and outdated.

Changes

  • Removed the old Node installation.
  • Removed global npm packages installation.
  • Added nvm installation.
  • Added command to install lts version of Node.

Comment on lines 11 to 19
# Check for Homebrew,
# Install if we don't have it
if test ! $(which brew); then
echo "Installing homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Download and install nvm - Node version manager
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash

# Make sure we’re using the latest Homebrew.
brew update
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is needed in all scripts. Why did we remove it?

Copy link
Owner

@danieldop danieldop Feb 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we install nvm from brew?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't check for nvm formulae for homebrew in the first place. There is one, so I'll use brew and revert homebrew check.

web.sh Outdated

# Install and use lts Node release
nvm install --lts
brew install node@8
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't we install nvm through brew?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants