【问题标题】:Issue when install Grunt安装 Grunt 时的问题
【发布时间】:2013-07-14 16:41:36
【问题描述】:

安装 grunt 时我在 imac 上得到以下信息

sudo npm install grunt-cli -g
npm http GET https://registry.npmjs.org/grunt-cli
npm http 304 https://registry.npmjs.org/grunt-cli
npm ERR! TypeError: uid must be an int
npm ERR!     at Object.fs.chown (fs.js:840:11)
npm ERR!     at Object.chown (/usr/local/lib/node_modules/npm/node_modules/graceful-    fs/polyfills.js:131:17)
npm ERR!     at endChown (/usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:212:12)
npm ERR!     at setProps (/usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:295:5)
npm ERR!     at /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:286:7
npm ERR!     at Object.oncomplete (fs.js:94:15)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Darwin 12.4.0
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "grunt-cli" "-g"
npm ERR! cwd /usr
npm ERR! node -v v0.11.5-pre
npm ERR! npm -v 1.3.4

请帮我找出我做错了什么,谢谢!

【问题讨论】:

    标签: macos node.js npm gruntjs


    【解决方案1】:

    使用 0.10.13 版本解决。

    【讨论】:

    • 请说明如何更改版本
    猜你喜欢
    • 2017-01-26
    • 2016-07-30
    • 1970-01-01
    • 2015-02-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-04-26
    • 1970-01-01
    相关资源
    最近更新 更多