[英]jspm not working when trying to install packages
我在運行jspm install
(或jspm install jquery
或任何其他軟件包以解決問題)時嘗試使用jspm時遇到問題,它超時兩次,然后在第三次嘗試時將顯示一條錯誤消息。
我不確定還有什么要說的,這是我第一次使用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在代理下工作正常
我有同樣的問題,可以通過清除jspm緩存來解決。 嘗試運行以下命令:
jspm cache-clear
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.