bash: npm: command not found?

前端 未结 11 1434
情歌与酒
情歌与酒 2020-12-30 19:33

I\'m learning laravel and follwing this tutorial,

But when I went try and install npm, is says bash: npm: command not found

相关标签:
11条回答
  • Just go into npm page and follow the instructions.

    0 讨论(0)
  • 2020-12-30 20:28

    If you have already installed nodejs and still getting this error. npm: command not found..

    run this

    apt-get install -y npm
    
    0 讨论(0)
  • 2020-12-30 20:31

    in redhat base OS (tested in centos 7)

    yum install nodejs npm -y
    

    in debian base OS

    apt-get install -y npm    
    
    0 讨论(0)
  • 2020-12-30 20:31

    If you already installed npm globally on your system, and you are still getting the above error message by using VSCode terminal. Just close your VSCode application and reopen again, that should resolve the issue.

    0 讨论(0)
  • 2020-12-30 20:40

    You need to install Node . Visiti this link

    [1]: https://nodejs.org/en/ and follow the instructions.

    0 讨论(0)
提交回复
热议问题