zoukankan      html  css  js  c++  java
  • 关于 -bash: npm: command not found

    一、npm: command not found

      节后余生,开工发现运行 npm run dev失败

      然后运行其他命令显示:

      

    Error: You have not agreed to the Xcode license. Please resolve this by running:

      sudo xcodebuild -license

    -bash: /nvm.sh: No such file or directory

     

      怀疑是xcode的问题,

      首先按照提示:sudo xcodebuild -license

      然后会显示xcode的参考同意证书,直接q,然后agree同意;

      再次运行npm 还是显示command not found

        由于之前 node是正常的,所以只是在 使~/.bash_profile生效即可: source ~/.bash_profile

    二、其他原因,可能是$PATH配置问题

      参照:node.js控制和nvm失效问题

      

  • 相关阅读:
    Java后台校验手机号和邮箱
    centos7安装redis
    centos7安装mysql5.7
    VUE环境运行搭建
    Oracle11gR2安装
    VisualSvn-Server搭建
    SpringCloud-Hoxton.SR1-config整合
    项目简介
    linux常用命令
    JAVA NIO
  • 原文地址:https://www.cnblogs.com/mxh1099/p/7639748.html
Copyright © 2011-2022 走看看