Error while running npm “prefix -g is not recognized as an internal or external command”

前端 未结 5 821
南旧
南旧 2020-12-21 00:56

\'CALL \"C:\\Program Files\\nodejs\\node.exe\" \"C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js\" prefix -g\' is not recognized as an internal or external com

5条回答
  •  半阙折子戏
    2020-12-21 01:44

    I had the same issue. Mine also printed this issue.

    error file C:\Windows\system32\cmd.exe;

    seems I screwed up my comSpec in my environmental variables.
    The ";" at the end of that line was causing the error.

提交回复
热议问题