how to fix 'jspm' is not recognized as an internal or external command, operable program or batch file

若如初见. 提交于 2019-12-08 16:27:37

问题


I install jspm in https://github.com/jspm/jspm-cli/wiki/Getting-Started. npm install jspm -g. It run. and I call it: jspm install, it not run,cmd notice "'jspm' is not recognized as an internal or external command, operable program or batch file." help me, please!


回答1:


Adding %appdata%\npm in environment variables under PATH worked for me.




回答2:


I was getting the same error and what I have tried and worked for me was to start cmd.exe as an administrator.

Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>cd C:\dev\GitHub\JspmTest

C:\dev\GitHub\JspmTest>jspm -v 0.15.7 Running against local jspm install.

C:\dev\GitHub\JspmTest>




回答3:


I had to add a PATH entry to my windows user env vars, not system. System was not expanding %APPDATA% because APPDATA was set in user env vars.

Then add %appdata%\npm to PATH in user env vars

JSPM was then accessible anywhere from command.

The entry in user PATH is appended at the end of system PATH, you don't lose your system PATH.



来源:https://stackoverflow.com/questions/31355807/how-to-fix-jspm-is-not-recognized-as-an-internal-or-external-command-operable

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!