📌  相关文章
📜  将节点 js mac 更新到最新版本 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:53.090000             🧑  作者: Mango

代码示例3
// 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