'concurently' is not recognized as an internal or external command, operable program or batch file

前端 未结 2 1483
醉梦人生
醉梦人生 2021-01-17 08:51

I try to run angular 2 project. There is package.json:

{
  \"name\": \"angular2-quickstart\",
  \"version\": \"1.0.0\",
  \"scripts\": {
    \"start\": \"con         


        
相关标签:
2条回答
  • 2021-01-17 09:05

    After rgvassar comment, I tried to check the chocolate. I saw that npm is deprecated here:

    https://chocolatey.org/packages?q=npm

    But I also saw that npm comes with nodejs. So I decided to upgrade nodejs. After upgrade of nodejs, I saw that npm is upgrade also.

    Then I ran in CMD as admin:

    npm install -g concurrently
    

    I saw also that npm is not supported on cygwin. But since cygwin also can access windows cmd commands, I still can use on it as I understand, just need to do installation on CMD.

    It was installed succesfully and now does not throw this error anymore.

    Thanks a lot, especially for quick comments!

    0 讨论(0)
  • 2021-01-17 09:15
    npm install -g npm-windows-upgrade
    npm install -g concurrently
    

    This worked for me,on running cmd through admin

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