node.js - 在 Mac 上安装 Remotebuild 失败,并显示“uid 必须是无符号整数”

标签 node.js macos cordova visual-studio-2015 npm

我尝试在 Mac 上安装 Remotebuild,以便通过我的 Mac 在 Visual Studio 2015 中部署 Cordova 应用程序。

技术信息: macOS 塞拉利昂 Node v4.6.0 npm v3.10.8 Xcode 8

但它失败并出现以下错误:“uid 必须是无符号整数”

我尝试重新安装 npm 但没有成功。

$ sudo npm install -g remotebuild

npm WARN deprecated wrench@1.5.9: wrench.js is deprecated! You should check out fs-extra (https://github.com/jprichardson/node-fs-extra) for any operations you were using wrench for. Thanks for all the usage over the years.
npm ERR! Darwin 16.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "remotebuild"
npm ERR! node v4.6.0
npm ERR! npm  v3.10.8

npm ERR! uid must be an unsigned int
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
npm ERR! Darwin 16.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "remotebuild"
npm ERR! node v4.6.0
npm ERR! npm  v3.10.8
....
npm ERR! uid must be an unsigned int
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

最佳答案

But it fails with the following error: „uid must be an unsigned int“

这是一个已知问题,根本原因在于 Node.js 核心,其中 OS X 上 nobodyUID(-2 转换为无符号整数)将由 fs.stat() 返回为有符号整数。请参阅 Github 中的讨论 here 。此问题仅存在于 npm v3.10.8 中。

修复已更新。请参阅fs: fix handling of struct stat fields #8515 .

关于node.js - 在 Mac 上安装 Remotebuild 失败,并显示“uid 必须是无符号整数”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39911232/

相关文章:

node.js - 如何使用请求模块node.js发出多个请求?

node.js - 在 Node.js Sequelize 中对连接表执行关联

javascript - 以编程方式关闭 Vorpal 实例

cocoa - NSWindow:通过窗口将鼠标事件传递到下面的任何内容

javascript - Phonegap - 设备信息不工作

android - Ionic $http 请求无法使用错误数据 null 状态 -1

mysql - 如何在 Socket IO 事件循环中处理 Knex 更新查询

c++ - 为什么 autotools 在一台机器上创建 project-File.o,在另一台机器上创建 File.o?

swift - 如何在 macOS 应用程序中使用 Swift 收听全局热键?

ajax - PhoneGap/jQuery Mobile 应用程序是否允许 'POST' 跨域 ajax 请求?