Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gnvm安装npm失败 #6

Open
yanyu0517 opened this issue May 4, 2016 · 8 comments
Open

gnvm安装npm失败 #6

yanyu0517 opened this issue May 4, 2016 · 8 comments

Comments

@yanyu0517
Copy link

用gnvm安装最新的npm,失败。控制台如下图
default
npm releases的地址是https://github.com/npm/npm/archive/vx.x.x.zip
而你的代码中/nodehandle/npm.go中,npm releases的地址错误了
NPMDEFAULT = "https://github.com/npm/npm/releases/"

yanyu0517 added a commit to yanyu0517/gnvm that referenced this issue May 4, 2016
@yanyu0517
Copy link
Author

#7 改成正确的下载地址了

@Kenshin
Copy link
Owner

Kenshin commented May 5, 2016

okay,测试面覆盖率 有待提高!
你在国外?如果是国内的话,用 TAOBAO 源 更好一些。切换方式:

gnvm config registry TAOBAO

另外, TAOBAOnpm 下载地址没问题。
本周会发布 Fix 版本。 如果不急着用的话,切换到 TAOBAO 源,否则的话,自行编译一下。

@yanyu0517
Copy link
Author

国内,不过我们访问淘宝的源会慢

@Garfield550
Copy link

一个安装 npm 的新的错误发生在 0.2.0,同样是下载地址错误引起的

C:\Program Files\nodejs>gnvm npm global
Waring: current path C:\Program Files\nodejs\ not exist npm.
Notice: local    npm version is unknown
Notice: remote   npm version is 2.15.8
Notice: download 2.15.8 version [Y/n]? y
Start download new npm version v2.15.8.zip
v2.15.8.zip: download error.
Error: 'gnvm npm global' an error has occurred. please check.
Error:
Name  : https://github.com/npm/npm/releases/v2.15.8.zip
Code  : -5
Error : runtime error: invalid memory address or nil pointer dereference

@Kenshin
Copy link
Owner

Kenshin commented Jun 30, 2016

这是同一个问题引起的,抱歉。
如果要暂时解决这个问题需要使用 TAOBAO 源。
之前说的修复,一直在延迟中... 下周我会集中修复它。

@Garfield550
Copy link

@Kenshin 希望进展顺利

@Richar-Dada
Copy link

淘宝镜像也不行

@iwzh
Copy link

iwzh commented Sep 20, 2016

TAOBAO 淘宝镜像没问题,默认的地址有问题!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants