Running karma after installation results in 'karma' is not recognized as an internal or external command

后端 未结 8 1709
长情又很酷
长情又很酷 2020-12-07 19:48

I\'m trying to run karma as part as an angular-seed project, after installing karma using

npm install -g karma

I get:



        
8条回答
  •  渐次进展
    2020-12-07 20:23

    Based upon your directory using \AppData\Roaming, you're on Windows and this error is usually because the path to the npm globals isn't in the Windows PATH or NODE_PATH environment variables.

    Use SET to check the values you are using for the paths and if your npm directory isn't listed, that will be the issue.

    If you don't want npm to save to this directory, check the npm configuration options and the npm folders docs to see what you can change in this regard...

提交回复
热议问题