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

Error installing latest version - 6.2.1 #579

Closed
piufop opened this issue Dec 21, 2016 · 8 comments
Closed

Error installing latest version - 6.2.1 #579

piufop opened this issue Dec 21, 2016 · 8 comments
Labels

Comments

@piufop
Copy link

piufop commented Dec 21, 2016

protobuf.js version: 6.2.1

Should install protobuf 6.2.1.

npm install protobufjs --save
npm ERR! Linux 4.7.2-040702-generic
npm ERR! argv "/home/hugo.machado/.nvm/versions/node/v4.5.0/bin/node" "/home/hugo.machado/.nvm/versions/node/v4.5.0/bin/npm" "install" "protobufjs" "--save"
npm ERR! node v4.5.0
npm ERR! npm  v3.10.9
npm ERR! code E404

npm ERR! 404 no such package available : @protobufjs/aspromise
npm ERR! 404 
npm ERR! 404  '@protobufjs/aspromise' 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 'protobufjs'
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/hugo.machado/git/bonuz-engine/npm-debug.log
[npm-debug.log.zip](https://github.com/dcodeIO/protobuf.js/files/667214/npm-debug.log.zip)


@dcodeIO
Copy link
Member

dcodeIO commented Dec 21, 2016

Try: npm -g install npm@latest

This will update npm to the latest available version. Seems scoped modules aren't supported with older npm versions.

@piufop
Copy link
Author

piufop commented Dec 21, 2016

Hi,
I've updated npm to the latest version but now i'm getting another error:

npm ERR! protobuf@0.11.0 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the protobuf@0.11.0 install script 'node-gyp rebuild'.
npm-debug.log.zip

@dcodeIO
Copy link
Member

dcodeIO commented Dec 21, 2016

Try: protobufjs instead of protobuf

@piufop
Copy link
Author

piufop commented Dec 22, 2016

Sorry for that =/

But i got the same error as before:

npm ERR! Linux 4.7.2-040702-generic
npm ERR! argv "/home/hugo.machado/.nvm/versions/node/v4.5.0/bin/node" "/home/hugo.machado/.nvm/versions/node/v4.5.0/bin/npm" "install" "protobufjs" "--save"
npm ERR! node v4.5.0
npm ERR! npm v4.0.5
npm ERR! code E404

npm ERR! 404 no such package available : @protobufjs/aspromise
npm ERR! 404
npm ERR! 404 '@protobufjs/aspromise' 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 'protobufjs'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request:
npm ERR! /home/hugo.machado/git/bonuz-engine/npm-debug.log

@dcodeIO
Copy link
Member

dcodeIO commented Dec 22, 2016

That's strange, the package exists.

@dcodeIO dcodeIO added the unsure label Dec 22, 2016
@dcodeIO
Copy link
Member

dcodeIO commented Dec 22, 2016

Maybe this helps. Please let me know!

@piufop
Copy link
Author

piufop commented Dec 23, 2016

Running npm set registry https://registry.npmjs.org/ did the trick.
It seems to be an issue with our proxy.

Thanks!

@dogbot
Copy link

dogbot commented Oct 26, 2018

The problem seems to be with node's child_process.spawn
which is used by the protobufjs@6.8.8 postinstall script

See this:
child_process.spawn does not work with npm run scripts on windows
nodejs/node#3675

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

No branches or pull requests

3 participants