nodejs
potatollu
https://my.csdn.net/weixin_38285351#
展开
-
linux安装nvm并快速修改node版本
1、安装nvm wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash2.编辑bashrcvim ~/.bashrc在bashrc里面写入以下配置export NVM_DIR="$HOME/.nvm"[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" 刷新配置 source ~/.bashrc3.检查版本原创 2022-03-21 10:03:39 · 886 阅读 · 0 评论 -
【nodejs】高版本nodejs对node-sass不兼容问题处理方法
使用jenkins做构建,node部署在linux上,无意中升级了nodejs的版本后,再次构建出现了错误提示[npminstall:runscript:error] node-sass@^4.7.2 scripts.postinstall run "node scripts/build.js" error: Error [RunScriptError]: Run "sh -c node scripts/build.js" error, exit code 1完整内容如下图:尝试了在服务器上安原创 2022-03-15 15:41:53 · 8141 阅读 · 6 评论