ITeye博客

node.js

共 1 篇文章

npm修改包安装全局模式路径(安装到统一的目录)

npm修改包安装全局模式路径(安装到统一的目录) 一 .背景: 今天打开命令行,使用 cnpm 安装 express 库 C:\Windows\System32>cnpm install express Error: EPERM: operation not permitted, mkdir 'C:\Windows\System32\node_modules' Error: EPERM: operation not permitted, mkdir 'C:\Windows\System32\node_modules' at Error (native) 提示没有权限创建目录 一想, 可能是c…

2016-07-29 19:10 · node.js · node.js · npm