Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to install due to missing bundle dependency #75

Closed
kubat opened this issue Oct 14, 2014 · 12 comments
Closed

Failure to install due to missing bundle dependency #75

kubat opened this issue Oct 14, 2014 · 12 comments

Comments

@kubat
Copy link
Contributor

kubat commented Oct 14, 2014

Hello, I'm attempting to install on

  • OSX 10.9.5
  • node 10.32
  • npm 2.1.3

I encounter the following error:

Cloning into 'hidapi'...
remote: Counting objects: 1965, done.
remote: Total 1965 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (1965/1965), 2.79 MiB | 2.39 MiB/s, done.
Resolving deltas: 100% (1082/1082), done.
Checking connectivity... done.
npm ERR! Darwin 13.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "node-hid"
npm ERR! node v0.10.32
npm ERR! npm  v2.1.3
npm ERR! code E404

npm ERR! 404 Not Found: hidapi
npm ERR! 404
npm ERR! 404 'hidapi' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'node-hid'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

This appears to be due to the following line in package.json:

"bundleDependencies": [ "hidapi" ],

npm does not know of this package.

@kubat
Copy link
Contributor Author

kubat commented Oct 14, 2014

I can confirm that removing the bundleDependencies line from the package.json resolves the issue.

kubat added a commit to kubat/node-hid that referenced this issue Oct 14, 2014
hanshuebner added a commit that referenced this issue Oct 14, 2014
@kubat kubat closed this as completed Oct 14, 2014
@kubat
Copy link
Contributor Author

kubat commented Oct 14, 2014

When you have a moment, can you push the update to npm so the fix is distributed? Thanks!

@DerZyklop
Copy link

Same here. My error is quite the same, but with newer node and npm:

npm ERR! Darwin 14.0.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.10.31
npm ERR! npm  v2.1.4
npm ERR! code E404

npm ERR! 404 Not Found: hidapi
npm ERR! 404 
npm ERR! 404 'hidapi' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'node-hid'
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

I don't know what i can do about this. Could you help me?

@kubat
Copy link
Contributor Author

kubat commented Oct 22, 2014

A fix (that worked for me at least) was checked into the repo, but an update has not been pushed to NPM. You can change your package.json to point to this repo to get the fix in the mean time.

@DerZyklop
Copy link

Let me get this straight... i have grunt-blink1 as dependency, which depends on node-blink1 which depends on node-hid.

I could fix it, by using your hid-repo as dependency. This means i have to fork grunt-blink1 and node-blink1 and set their package.json's to my custom dependencies, right? Or is there an easier way?

@DerZyklop
Copy link

FYI:
I fixed it by downgrading to an older version of node and npm.
As i use homebrew i did it this way:

# Get an older version of node
cd /usr/local
brew versions node
git checkout 51dbf0b Library/Formula/node.rb # For node version 0.10.31
brew install node

# Get an older version of npm
npm install -g npm@1.4.27

@hanshuebner
Copy link
Member

I've published the current version as 0.3.2 on npm.

-Hans

2014-10-22 15:05 GMT+01:00 DerZyklop notifications@github.com:

FYI:
I fixed it by downgrading to an older version of node and npm.
As i use homebrew i did it this way:

Get an older version of node

cd /usr/local
brew versions node
git checkout 51dbf0b Library/Formula/node.rb # For node version 0.10.31
brew install node

Get an older version of npm

npm install -g npm@1.4.27

Reply to this email directly or view it on GitHub
#75 (comment).

@DerZyklop
Copy link

👍

@RussNelson
Copy link

Not a node.js expert, nor an npm expert. I'm trying to install The Thing System, which makes use of node-his@0.2.3. Not sure which package is including it. I tried removing hidapi from ~/.npm/node-hid/0.2.3/package/package.json and re-installing. No go. Same error as above. I tried editing ~/.npm/node-hid/0.2.3/package.tgz and removing the dependency from package.json. Gzipped it up and put it back. Still no go. Speculation: npm isn't using the copy that it's downloaded, but is instead downloading another package?? Enclosed are what I believe to be the appropriate lines.
t.txt

@todbot
Copy link
Contributor

todbot commented Dec 13, 2015

@RussNelson you should try updating the node-hid package reference to node-hid@0.5.0. 0.2.3 is very old.

@RussNelson
Copy link

and ... package/src/HID.cc has "#include <hidapi.h>" in it, which makes it look to me like node-hid really does require hidapi.

node-blink1@0.1.0 is requiring it. I tried changing the package.json file, but it's still erroring on node-hid@0.2.3.

I think I must be trying to use npm incorrectly. I'm actually changing the json file, it's actually loading that file, and yet it keeps insisting on requiring the dependency given in the original file. It's like the dependency is stored somewhere outside of the package.json file.

@RussNelson
Copy link

Any hints on what file I should modify in node-blink1 to convince it to depend on node-hid@0.5.0? Changing package.json isn't working.

I think we're running into the problem my thesis advisor called "too much magic" in npm. When it works, the magic is magical. When it doesn't work. it's hellish to fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants