-
Notifications
You must be signed in to change notification settings - Fork 287
Closed
Description
Fresh install of node-0.8.20 .pkg from nodejs.org. "npm install node-hid" gives output below.
Platform is Mac Mountain Lion (10.8.2) with Xcode and command-line tools installed.
% npm install node-hid
npm http GET https://registry.npmjs.org/node-hid
npm http 304 https://registry.npmjs.org/node-hid
> [email protected] preinstall /Users/tod/node_modules/node-hid
> sh get-hidapi.sh
Cloning into 'hidapi'...
remote: Counting objects: 1860, done.
remote: Compressing objects: 100% (721/721), done.
remote: Total 1860 (delta 1209), reused 1700 (delta 1079)
Receiving objects: 100% (1860/1860), 2.59 MiB | 826 KiB/s, done.
Resolving deltas: 100% (1209/1209), done.
> [email protected] install /Users/tod/node_modules/node-hid
> sh install.sh
Traceback (most recent call last):
File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp", line 18, in <module>
sys.exit(gyp.main(sys.argv[1:]))
File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 523, in main
return gyp_main(args)
File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 499, in gyp_main
options.circular_check)
File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 129, in Load
params['parallel'])
File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 2556, in Load
variables, includes, depth, check, True)
File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 365, in LoadTargetBuildFile
includes, True, check)
File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 223, in LoadOneBuildFile
None)
File "binding.gyp", line 1
{
^
SyntaxError: invalid syntax
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:416:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:99:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System Darwin 12.2.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build" "install"
gyp ERR! cwd /Users/tod/node_modules/node-hid
gyp ERR! node -v v0.8.20
gyp ERR! node-gyp -v v0.8.4
gyp ERR! not ok
npm ERR! [email protected] install: `sh install.sh`
npm ERR! `sh "-c" "sh install.sh"` 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-hid package,
npm ERR! not with npm itself.
Metadata
Metadata
Assignees
Labels
No labels