2016-02-11 48 views
0

我嘗試安裝angularJs(https://docs.angularjs.org/tutorial) 當我做一些npm install包無法安裝,我得到了錯誤混帳:我不處理協議「[https」時

我不處理協議'[https' 時

我試着寫:

{ "proxy" : "http://<host>:<port>", "https-proxy" : "http://<host>:<port>" }

.bowerrc和命令git config --global url."https://".insteadOf git://但不工作也不

如果我手動安裝包git clone,一些包通過,有的不會,仍然說

我不處理協議「[https」時

我不處理協議 '[https' 時

完全錯誤:

bower ECMDERR無法執行「git ls-remote --tags - heads git://github.com/angular/bower-angular-mocks.git」,退出#128致命代碼:我不處理協議 '[https' 時

我是上的Kubuntu

npm config get 

; cli configs 
registry = "https://registry.npmjs.org/" 

; builtin config undefined 
# DO NOT MODIFY THIS FILE - use /etc/npmrc instead. = true 
globalconfig = "/etc/npmrc" 
globalignorefile = "/etc/npmignore" 
prefix = "/usr/local" 

; node bin location = /usr/bin/nodejs 
; cwd = /home/marvin/angular-phonecat 
; HOME = /home/marvin 
; 'npm config ls -l' to show all defaults. 

npm config ls -l 

; cli configs 
long = true 
registry = "https://registry.npmjs.org/" 

; builtin config undefined 
# DO NOT MODIFY THIS FILE - use /etc/npmrc instead. = true 
globalconfig = "/etc/npmrc" 
globalignorefile = "/etc/npmignore" 
prefix = "/usr/local" 

; default values 
always-auth = false 
bin-links = true 
browser = null 
cache = "/home/marvin/.npm" 
cache-lock-retries = 10 
cache-lock-stale = 60000 
cache-lock-wait = 10000 
cache-max = null 
cache-min = 10 
color = true 
coverage = false 
depth = null 
description = true 
dev = false 
editor = "vi" 
engine-strict = false 
fetch-retries = 2 
fetch-retry-factor = 10 
fetch-retry-maxtimeout = 60000 
fetch-retry-mintimeout = 10000 
force = false 
git = "git" 
global = false 
; globalconfig = "/usr/local/etc/npmrc" (overridden) 
; globalignorefile = "/usr/local/etc/npmignore" (overridden) 
group = 1000 
https-proxy = null 
ignore = "" 
init-module = "/home/marvin/.npm-init.js" 
init.author.email = "" 
init.author.name = "" 
init.author.url = "" 
init.version = "0.0.0" 
json = false 
link = false 
loglevel = "http" 
; long = false (overridden) 
message = "%s" 
node-version = "v0.10.25" 
npat = false 
npaturl = "http://npat.npmjs.org/" 
onload-script = false 
optional = true 
parseable = false 
pre = false 
; prefix = "/usr" (overridden) 
production = false 
proprietary-attribs = true 
proxy = null 
rebuild-bundle = true 
registry = "https://registry.npmjs.org/" 
rollback = true 
save = false 
save-bundle = false 
save-dev = false 
save-optional = false 
searchexclude = null 
searchopts = "" 
searchsort = "name" 
shell = "/bin/bash" 
shrinkwrap = true 
sign-git-tag = false 
strict-ssl = true 
tag = "latest" 
tmp = "/home/marvin/tmp" 
umask = 18 
unicode = true 
unsafe-perm = true 
usage = false 
user = 0 
user-agent = "node/v0.10.25 linux x64" 
userconfig = "/home/marvin/.npmrc" 
userignorefile = "/home/marvin/.npmignore" 
username = "" 
version = false 
versions = false 
viewer = "man" 
yes = null 
+0

你有沒有設置NPM代理呢? –

+0

你好,我沒有代理服務器......我猜。我直接連接到互聯網。謝謝 – user2203384

+0

哦,我的意思是你可能有一個互聯網代理。如果你有代理服務器,你需要通過代理來設置'npm'和'bower'來安裝互聯網上的任何東西。請檢查您是否爲您的環境設置了代理。 –

回答