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

windows下安装后出错 #5

Closed
ziben opened this issue May 4, 2016 · 2 comments
Closed

windows下安装后出错 #5

ziben opened this issue May 4, 2016 · 2 comments

Comments

@ziben
Copy link

ziben commented May 4, 2016

windows下,生成的快捷方式直接指向的是smart-npm.js,如果windows的js默认不是由node.exe执行的话,那么就会出现安装后npm不能用的问题。

@ziben
Copy link
Author

ziben commented May 4, 2016

我修改了js默认由node.exe执行,在cmd窗口下还是不能用啊。

@qiu8310
Copy link
Owner

qiu8310 commented May 4, 2016

不好意思,我刚发布 smart-npm@2.0.0,没有在 window 测试。发布 2.0 主要是因为 在 mac 上 smart-npm 无法通过 scripts 的方式覆盖原来的 npm,所以 2.0 是通过先删除原来的 npm,再添加一个用 smart-npm 生成的新 npm。

我刚在 window 上试了下,我这也没装成功,是说没有权限把原来的 npm 删除。不过装 smart-npm@1 是可以成功的,也许你也可以装1试试(功能上版本2和版本1没有太大的区别,主要是安装方式不一样),安装脚本:

npm install --global smart-npm@1 --registry=https://registry.npm.taobao.org/

如果还有问题麻烦将 npm 报错的信息也贴一下(发现通过覆盖原生的 npm 这种方法不是太稳定,不同的系统会有不同的问题)

@qiu8310 qiu8310 closed this as completed May 5, 2016
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

2 participants