更新npm并安装docpad权限后发生错误

时间:2013-10-26 21:24:37

标签: node.js npm docpad

运行以下

之后
npm install -g npm; npm install -g docpad@6.53

我在安装过程中遇到了这些错误

 scripts/doc-build.sh: line 22: .building_ronn: Permission denied
    make: *** [man/man3/npm-bin.3] Error 1
    make: *** Waiting for unfinished jobs....
    scripts/doc-build.sh: line 22: .building_ronn: Permission denied
    make: *** [man/man3/npm-bugs.3] Error 1
    scripts/doc-build.sh: line 22: .building_ronn: Permission denied
    make: *** [man/man3/npm-commands.3] Error 1
    scripts/doc-build.sh: line 22: .building_ronn: Permission denied
    make: *** [man/man3/npm-config.3] Error 1
    npm ERR! addLocalDirectory Could not pack "npm" to "/var/folders/dj/vbwbhr8502s7clkgv1wpfw540000gn/T/npm-85093-ZDFFdytp/1382822267052-0.4880194154102355/tmp.tgz

1 个答案:

答案 0 :(得分:0)

你用sudo试过吗?即。

sudo npm install -g docpad@6.53

另外,当你从命令行自己安装docpad时会出现这个错误吗?