Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

upgrading node on mac

1 brew update
2 brew upgrade node
Comment

how to update node on mac

#this will update postgres and dependencies and 
#sometimes will be enough.  check version after
brew update
brew upgrade node
node --version # outputs: v12.x.x
#not the version i wanted so list packages
nvm ls
#Find the version I want, says N/A: default -> 16.15.1 (-> N/A)
nvm install 16.15.1
node --version # outputs: v16.15.1 !hooray!
Comment

update to node 12 mac

// Fix node not found first	
sudo chown -R `whoami`:admin /usr/local/include/node
    sudo chown -R `whoami`:admin /usr/local/bin
    sudo chown -R `whoami`:admin /usr/local/share
    sudo chown -R `whoami`:admin /usr/local/lib/dtrace 

 brew link --overwrite node
 
// Then: 
sudo npm cache clean -f 
sudo npm install -g n 
sudo n stable/lts
Comment

PREVIOUS NEXT
Code Example
Javascript :: function that return shortest of words in the given array js 
Javascript :: js current time 
Javascript :: javascript code for year in html 
Javascript :: kill all node process ubunut 
Javascript :: leaflet.js cdn 
Javascript :: fibonacci sequence in javascript using for loop 
Javascript :: jquery remove element by id 
Javascript :: javascript regex only letters and spaces 
Javascript :: expo ap loading 
Javascript :: aws secret manager nodejs javascript 
Javascript :: how to append select option in jquery 
Javascript :: javascript median of array 
Javascript :: token invalid discord bot 
Javascript :: run react native app in production mode 
Javascript :: javascript move element in array to end 
Javascript :: javascript uppercase first character of each word 
Javascript :: append before jquery 
Javascript :: javascript remove last characters from string 
Javascript :: add bootstrap to react,.........,,,, 
Javascript :: jquery if checkbox checked 
Javascript :: set value in span using jquery 
Javascript :: check if a variable is array in javascript 
Javascript :: node sleep 
Javascript :: js stop form submit 
Javascript :: write file with deno 
Javascript :: javascript-find-json-value 
Javascript :: js style background image by id 
Javascript :: vimeo regez video id 
Javascript :: javascript fill 2d array 
Javascript :: eslint disable block 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =