Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

brew node switch version

# install LATEST stable version of node
$ brew install node

# install OLD version of node
$ brew install node@8

# check version of installed node
$ node -v
v10.4.1

# unlink LATEST version of node
$ brew unlink node

# link OLD version of node
$ brew link node@8

# update bash profile to point to OLD version
$ echo 'export PATH="/usr/local/opt/node@8/bin:$PATH"' >> ~/.bash_profile
# or
$ echo 'export PATH="/usr/local/opt/node@8/bin:$PATH"' >> ~/.zshrc

# open a new terminal window and verify version
$ node -v
v8.16.1
Comment

PREVIOUS NEXT
Code Example
Javascript :: discord js check if person banned 
Javascript :: datatable on page change 
Javascript :: discord.js button 
Javascript :: install node on ubuntu and debian 
Javascript :: Select All Elements With A Class getElementsByClassName 
Javascript :: js array loop backwards 
Javascript :: How do I redirect to another webpage 
Javascript :: React import image with url 
Javascript :: local storage remove multiple items 
Javascript :: createrouter vue 3 history remove Hash 
Javascript :: react conditional styling 
Javascript :: javascript get value 
Javascript :: css lint 
Javascript :: calculus of finite differences calculator 
Javascript :: how to link a photo in expo react native 
Javascript :: how to define state in react function 
Javascript :: create react app deployment heroku 
Javascript :: how to validate the radio button using jquery 
Javascript :: javascript sum array values 
Javascript :: ckeditor check if empty 
Javascript :: discord.js send message to a given channel 
Javascript :: What is data modeling in MongoDB 
Javascript :: An external JavaScript cannot contain the <script tag 
Javascript :: change innertext javascript 
Javascript :: vite.config.js 
Javascript :: js get first letter of string 
Javascript :: href="javascript:void(null);" 
Javascript :: jquery checkvalidity 
Javascript :: axios cancel previous request 
Javascript :: npm registry 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =