Settings | Sign in | Sign up

There are currently 2 posts.

【链接】nodejs下载安装教程(XP版)

Floor 4 巨大八爪鱼 5/24/24 20:47
Vista系统一定要记得把自己新建的C:\Program Files\nodejs\node_global和C:\Program Files\nodejs\node_cache两个文件夹加上Users的完全控制权限。

然后打开开始菜单里面的Node.js command prompt,执行:
npm config set prefix "C:\Program Files\nodejs\node_global"
npm config set cache "C:\Program Files\nodejs\node_cache"
就可以正常使用npm install命令了。
npm install express -g
巨大八爪鱼 5/24/24 22:28

默认目录:

npm config get prefix
C:\Documents and Settings\Octopus\Application Data\npm
npm config get cache
C:\Documents and Settings\Octopus\Application Data\npm-cache

Content converter:

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.