问题
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