- Vue.js 2 Design Patterns and Best Practices
- Paul Halliday
- 193字
- 2021-06-24 18:33:01
Installing Node via Homebrew
The quickest way to get Homebrew is to visit http://brew.sh and get hold of the installation script. It should look a little something like this:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Simply paste that into your Terminal and it'll download the Homebrew package manager to your Mac. We can then use brew install node to install Node on our system without any worries.
Once you've done that, check your Node installation works by typing node -v and npm -v. If you get two version numbers back (that is, one for each), then you’re ready to go ahead with the rest of the book!
In order to manage the different Node versions, we could also install the Node Version Manager (NVM). Do note however that this is currently only supported by Mac at present and not Windows. To install NVM, we can use Homebrew like so:
--use Brew to install the NVM
brew install nvm
--File directory
mkdir ~/.nvm
--Install latest version
nvm install --lts
--Ensure latest version is used
nvm use node
--Remember details across sessions
nano ~/.bash_profile
--Execute in every session
export NVM_DIR="$HOME/.nvm"
. "$(brew --prefix nvm)/nvm.sh"
- 農(nóng)產(chǎn)品物聯(lián)網(wǎng)研究與應用
- 網(wǎng)絡的琴弦:玩轉IP看監(jiān)控
- 物聯(lián)網(wǎng)長距離無線通信技術應用與開發(fā)
- jQuery Mobile Web Development Essentials
- 物聯(lián)網(wǎng)場景設計與開發(fā)(初級)
- 網(wǎng)絡AI+:2030后的未來網(wǎng)絡
- Android UI Design
- 物聯(lián)網(wǎng)頂層設計與關鍵技術
- 中國互聯(lián)網(wǎng)發(fā)展報告2021
- bash網(wǎng)絡安全運維
- 物聯(lián)網(wǎng)基礎及應用
- 圖解物聯(lián)網(wǎng)
- Guide to NoSQL with Azure Cosmos DB
- 工業(yè)以太網(wǎng)技術:AFDX/TTE網(wǎng)絡原理、接口、互連與安全
- 物聯(lián)網(wǎng)導論