当我运行jspm install
(或jspm install jquery
或任何其他包以解决它的问题)时尝试使用jspm时出现问题,它会超时两次然后在第3次尝试时会出现问题给我一个错误信息。
我不知道还有什么要说的,这是我第一次使用jspm所以我只是要粘贴输出:
jspm install jquery
Updating registry cache...
warn Timed out on locate for jspm:jquery, retrying (1).
To increase the timeout run jspm config registries.jspm.timeouts.lookup 120
warn Timed out on locate for jspm:jquery, retrying (2).
To increase the timeout run jspm config registries.jspm.timeouts.lookup 120
warn Error on locate for jspm:jquery
Error: Command failed: C:\Windows\system32\cmd.exe /s /c "git fetch --all &
& git reset --hard origin/master"
From https://github.com/jspm/registry
* branch HEAD -> FETCH_HEAD
fatal: ambiguous argument 'origin/master': unknown revision or path not in
the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
at ChildProcess.exithandler (child_process.js:203:12)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:818:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5
)
err Error locating jspm:jquery.
我在Windows 7 64位运行,我在代理(没有身份验证的localhost代理连接到需要身份验证的公司代理),我已经设置了HTTP_PROXY和HTTPS_PROXY环境变量,npm在代理下工作正常
答案 0 :(得分:2)
我遇到了同样的问题,并且能够通过清除我的jspm缓存来解决它。尝试运行此命令:
jspm cache-clear