美文网首页
ReactNative 解决npm:command not fo

ReactNative 解决npm:command not fo

作者: Loki_ | 来源:发表于2017-10-23 09:22 被阅读24次

npm:command not found突然不好用了,试了网上所有的方法都不好用,只能卸载重新安装。

Homebrew安装的node,不能直接卸载npm和node,先卸载Homebrew,在重新安装。

Homebrew卸载方法:

cd`brew --prefix`

rm-rf Cellar

brew prune

rm`gitls-files`

rm-r Library/HomebrewLibrary/AliasesLibrary/FormulaLibrary/Contributions

rm-rf .git

rm-rf ~/Library/Caches/Homebrew

相关文章

网友评论

      本文标题:ReactNative 解决npm:command not fo

      本文链接:https://www.haomeiwen.com/subject/xcyouxtx.html