Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

npm 与 cnpm 的 --global 安装路径问题 #548

Closed
Gerhut opened this issue Dec 26, 2014 · 3 comments
Closed

npm 与 cnpm 的 --global 安装路径问题 #548

Gerhut opened this issue Dec 26, 2014 · 3 comments

Comments

@Gerhut
Copy link

Gerhut commented Dec 26, 2014

PS C:\Users\Administrator> cnpm install -g stylus
C:\Program Files\nodejs\stylus -> C:\Program Files\nodejs\node_modules\stylus\bin\stylus
PS C:\Users\Administrator> npm install stylus -g
C:\Users\Administrator\AppData\Roaming\npm\stylus -> C:\Users\Administrator\AppData\Roaming\npm\node_modules\stylus\stylus

安装位置不一样是特意这么设计的么?

@fengmk2
Copy link
Member

fengmk2 commented Dec 26, 2014

能否提供一下 cnpm -v 的版本和 npm -v 的版本。cnpm 使用的 npm 比你自带的 npm 版本要新,具体安装到哪里是由 npm 处理的逻辑。

@Gerhut
Copy link
Author

Gerhut commented Dec 29, 2014

npm 1.4.28
cnpm 1.2.0

npm 升级到最新版之后问题依旧

@fengmk2
Copy link
Member

fengmk2 commented Dec 29, 2014

cnpm 内部依赖的npm版本比你安装的npm版本高很多,这是npm各个版本之间的差异,跟cnpm本身无关,你可以安装一个新版本的npm对比一下

Sent from my iPhone

On Dec 29, 2014, at 11:11 AM, George Chung notifications@github.com wrote:

npm 1.4.28
cnpm 1.2.0

Reply to this email directly or view it on GitHub.

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

No branches or pull requests

2 participants