-
Notifications
You must be signed in to change notification settings - Fork 82
Description
Hi there,
i'm following a tutorial on how to build a chat system and node-xmpp-bosh was recommended as a core ingredient. I'm using a windows system 32-bit. Installed node-gyp and node-expat already.
I tried to npm install node-xmpp-bosh and this is the error that i get:
C:\Users\shawnlim\Documents\Websites\nodeprojects\fb-chat>npm i node-xmpp-bosh
npm WARN package.json [email protected] No README.md file found!
npm http GET https://registry.npmjs.org/node-xmpp-bosh
npm http 304 https://registry.npmjs.org/node-xmpp-bosh
npm http GET https://registry.npmjs.org/tav
npm http GET https://registry.npmjs.org/node-uuid
npm http GET https://registry.npmjs.org/ltx
npm http GET https://registry.npmjs.org/node-expat
npm http GET https://registry.npmjs.org/ws
npm http GET https://registry.npmjs.org/dns-srv
npm http GET https://registry.npmjs.org/semver
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/eventpipe
npm http GET https://registry.npmjs.org/log4js
npm http 304 https://registry.npmjs.org/ltx
npm http 304 https://registry.npmjs.org/node-expat
npm http 304 https://registry.npmjs.org/ws
npm http 304 https://registry.npmjs.org/node-uuid
npm http 304 https://registry.npmjs.org/tav
npm http 304 https://registry.npmjs.org/dns-srv
npm WARN package.json [email protected] No README.md file found!
npm http 304 https://registry.npmjs.org/semver
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/eventpipe
npm http 304 https://registry.npmjs.org/log4js
[email protected] install C:\Users\shawnlim\Documents\Websites\nodeprojects\fb-
chat\node_modules\node-xmpp-bosh\node_modules\node-expat
node-gyp rebuild
C:\Users\shawnlim\Documents\Websites\nodeprojects\fb-chat\node_modules\node-xmpp
-bosh\node_modules\node-expat>node "C:\Program Files\nodejs\node_modules\npm\bin
\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild
npm http GET https://registry.npmjs.org/options
npm http GET https://registry.npmjs.org/tinycolor
npm http GET https://registry.npmjs.org/commander
npm http GET https://registry.npmjs.org/async/0.1.15
npm http 304 https://registry.npmjs.org/tinycolor
npm http 304 https://registry.npmjs.org/options
npm http 304 https://registry.npmjs.org/commander
npm http 304 https://registry.npmjs.org/async/0.1.15
[email protected] install C:\Users\shawnlim\Documents\Websites\nodeprojects\fb-chat\no
de_modules\node-xmpp-bosh\node_modules\ws
node install.js
node-expat.cc
[ws v0.4.22] Attempting to compile blazing fast native extensions.
..\node-expat.cc(6): fatal error C1083: Cannot open include file: 'expat.h': No
such file or directory [C:\Users\shawnlim\Documents\Websites\nodeprojects\fb-c
hat\node_modules\node-xmpp-bosh\node_modules\node-expat\build\node_expat.vcxpro
j]
gyp ERR! build error
gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules
npm\node_modules\node-gyp\lib\build.js:219:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:96:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System Windows_NT 6.1.7600
gyp ERR! command "node" "C:\Program Files\nodejs\node_modules\npm\node_modu
les\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\shawnlim\Documents\Websites\nodeprojects\fb-chat\node_modu
les\node-xmpp-bosh\node_modules\node-expat
gyp ERR! node -v v0.8.11
gyp ERR! node-gyp -v v0.6.11
gyp ERR! not ok
[ws v0.4.22] Native code compile failed (but the module will still work):
[ws v0.4.22] The native extensions are faster, but not required.
[ws v0.4.22] On Windows, native extensions require Visual Studio and Python.
[ws v0.4.22] On Unix, native extensions require Python, make and a C++ compiler.
[ws v0.4.22] Start npm with --ws:verbose to show compilation output (if any).
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! cmd "/c" "node-gyp rebuild" failed with 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the node-expat 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 node-expat
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7600
npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nod
ejs\node_modules\npm\bin\npm-cli.js" "i" "node-xmpp-bosh"
npm ERR! cwd C:\Users\shawnlim\Documents\Websites\nodeprojects\fb-chat
npm ERR! node -v v0.8.11
npm ERR! npm -v 1.1.62
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\shawnlim\Documents\Websites\nodeprojects\fb-chat\npm-debug
.log
npm ERR! not ok code 0