node安装升级过程中遇到的问题汇总

一、Node already installed, it's just not linked

第一步:sudo chown -R $(whoami) $(brew --prefix)/*
第二步:brew link --overwrite node

二、升级node后 项目中提示 bingding node-sass 不正确的时候
Missing binding /usr/local/lib/node_modules/tua/node_modules/node-sass/vendor/darwin-x64-67/binding.node
重新安装node-sass

切换到这个目录下: /usr/local/lib/node_modules/tua/node_modules

npm rebuild node-sass --save-dev

三、

posted @ 2018-11-28 15:33  Macchiato  阅读(587)  评论(0编辑  收藏  举报