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

CNPM v4.2.0在Windows系统上工作不正常 #97

Closed
panteng opened this issue Mar 25, 2016 · 6 comments · Fixed by cnpm/npminstall#57
Closed

CNPM v4.2.0在Windows系统上工作不正常 #97

panteng opened this issue Mar 25, 2016 · 6 comments · Fixed by cnpm/npminstall#57
Assignees
Labels

Comments

@panteng
Copy link

panteng commented Mar 25, 2016

Win10 x64
node v5.9.0
npm v3.8.3
cnpm v4.2.0

  1. 使用cnpm install xxx -g安装全局模块有问题。比如全局安装gulp-cli后,在命令行中输入gulp -v,会提示找不到命令。
  2. 使用cnpm install xxx -d时,控制台输入的信息与官方npm不一致,cnpm v4.2.0并没有把安装过程中的详细信息打印出来,而是显示下载文件大小和安装耗时。我不清楚cnpm的具体实现机制,但是我觉得尽可能让输出信息与官方npm一致是不是更妥当?

使用官方npm v3.8.3或者换回cnpm v3.4.1后则一切正常。

@alsotang
Copy link
Member

cnpm 4.2 不是用的 npm 封装,而是用了 npminstall 这个库。所以你输入的 npm 参数,npminstall 不一定能接受。

在 2016年3月25日 下午11:01,Chris Pan notifications@github.com写道:

Win10 x64
node v5.9.0
npm v3.8.3
cnpm v4.2.0

使用cnpm install xxx -g安装全局模块有问题。比如全局安装gulp-cli后,在命令行中输入gulp -v,会提示找不到命令。
2.

使用cnpm install xxx -d时,控制台输入的信息与官方npm不一致,cnpm
v4.2.0并没有把安装过程中的详细信息打印出来,而是显示下载的文件大小和耗时。我不清楚cnpm的具体实现机制,但是我觉得尽可能让输出信息与官方npm一致是不是更妥当?

使用官方npm v3.8.3或者换回cnpm v3.4.1后则一切正常。


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#97

@panteng
Copy link
Author

panteng commented Mar 25, 2016

@alsotang
感谢回复。
参数的问题ok,但是全局安装模块的问题是BUG吗,会在后续版本里修复吗?

@fengmk2
Copy link
Member

fengmk2 commented Mar 26, 2016

cnpm install xxx -d

可以使用 DEBUG=npminstall* cnpm install xxx 代替

@fengmk2
Copy link
Member

fengmk2 commented Mar 26, 2016

image

我在非 windows 下是 ok 的, @panteng 你重新安装一下 cnpm,然后再尝试一次 -g 安装。

@fengmk2
Copy link
Member

fengmk2 commented Mar 26, 2016

@panteng 应该是 cnpm/npminstall#55 类似问题了。

@panteng
Copy link
Author

panteng commented Mar 26, 2016

@fengmk2
感谢回复。

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

Successfully merging a pull request may close this issue.

3 participants