0

我今天尝试在 Win7 上安装 appcelerator。我得到的只是“Appcelerator CLI 正在安装或升级,请稍候......”。

通过 cli 安装

npm install appcelerator -g

失败并显示以下输出。我尝试安装 5.0.0 并收到不同的错误消息。有任何想法吗?

Finding version 5.1.0 ... OK
Validating security checksum OK
Installing ... OK
Compiling platform native modules ...
└ extract-opts/typechecker ... OK
└ bunyan/dtrace-provider ...  OK
└ extract-opts/typechecker ...  OK
└ socket.io-client/ws ...  OK
└ appc-ldapjs/dtrace-provider ...  OK
└ bunyan/dtrace-provider ...  OK
└ appc-ldapjs/dtrace-provider ...  OK
└ ws/bufferutil ... gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` fail
ed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\
npm\node_modules\node-gyp\lib\build.js:270:23)
gyp ERR! stack     at emitTwo (events.js:100:13)
gyp ERR! stack     at ChildProcess.emit (events.js:185:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_proces
s.js:200:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodej
s\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Drew\.appcelerator\install\5.1.0\package\node_modules\arro
w\node_modules\appc-pubsub\node_modules\socket.io-client\node_modules\engine.io-
client\node_modules\ws\node_modules\bufferutil
gyp ERR! node -v v5.5.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install" "bufferutil@1.2.1" "--production"
npm ERR! node v5.5.0
npm ERR! npm  v3.3.12
npm ERR! code ELIFECYCLE

npm ERR! bufferutil@1.2.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bufferutil@1.2.1 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the bufferutil package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls bufferutil
npm ERR! There is likely additional logging output above.
4

3 回答 3

1

解决了

我不得不卸载 appcelerator 和 node.js。然后删除 %APPDATA%npn 和 npn-cache。然后安装应用加速器。

如果你在安装 jre 之后安装 jdk,appcelerator 也不喜欢它。

于 2016-01-31T23:54:05.747 回答
0

尝试卸载节点版本。打开 Appcelerator Studio,它会自动安装 node 版本。接下来使用命令提示符运行以下命令:

  • npm 安装应用加速器 -g
  • appc 使用最新

希望这可以帮助。

于 2016-01-28T10:06:50.540 回答
0

请参阅https://www.robertkehoe.com/2015/03/fix-node-gyp-rebuild-error-on-windows/这也可能有所帮助。Windows 和 node/node-gyp 是节点社区目前正在处理的一个挑战。

于 2016-01-28T17:39:12.443 回答