美文网首页
[react-native]- npm安装与配置

[react-native]- npm安装与配置

作者: AlwaysLuckyMa | 来源:发表于2020-06-19 13:07 被阅读0次

    zsh: command not found:

    zsh: command not found: npm 等问题

    直接卸载

     sudo npm uninstall npm -g
     
     sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.*
     
     sudo rm -rf /usr/local/include/node /Users/$USER/.npm
     
     sudo rm /usr/local/bin/node
     
     sudo rm /usr/local/share/man/man1/node.1
     
     sudo rm /usr/local/lib/dtrace/node.d
    

    查看卸载干净没有
    node -v
    npm-v
    重新安装 nodejs npm
    官网地址 :https://nodejs.org/en/download/current/

    相关文章

      网友评论

          本文标题:[react-native]- npm安装与配置

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