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

CLI error Hyperledger component (generator-hyperledger-composer) #1008

Closed
jlpuente opened this issue Mar 11, 2020 · 1 comment
Closed

CLI error Hyperledger component (generator-hyperledger-composer) #1008

jlpuente opened this issue Mar 11, 2020 · 1 comment

Comments

@jlpuente
Copy link

jlpuente commented Mar 11, 2020

What / Why

Hi, I'm trying to install (with root privileges) the third point of Hyperledger components (from https://hyperledger.github.io/composer/latest/installing/development-tools.html#appendix) in Ubuntu CLI but by entering the instruction

-> npm install -g generator-hyperledger-composer@0.20

I receive the following errors:

npm ERR! Linux 4.15.0-64-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "generator-hyperledger-composer@0.20"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code EMISSINGARG

npm ERR! typeerror Error: Missing required argument #1
npm ERR! typeerror at andLogAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:31:3)
npm ERR! typeerror at fetchPackageMetadata (/usr/share/npm/lib/fetch-package-metadata.js:51:22)
npm ERR! typeerror at resolveWithNewModule (/usr/share/npm/lib/install/deps.js:456:12)
npm ERR! typeerror at /usr/share/npm/lib/install/deps.js:457:7
npm ERR! typeerror at /usr/share/npm/node_modules/iferr/index.js:13:50
npm ERR! typeerror at /usr/share/npm/lib/fetch-package-metadata.js:37:12
npm ERR! typeerror at addRequestedAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:82:5)
npm ERR! typeerror at returnAndAddMetadata (/usr/share/npm/lib/fetch-package-metadata.js:117:7)
npm ERR! typeerror at pickVersionFromRegistryDocument (/usr/share/npm/lib/fetch-package-metadata.js:134:20)
npm ERR! typeerror at /usr/share/npm/node_modules/iferr/index.js:13:50
npm ERR! typeerror This is an error with npm itself. Please report this error at:
npm ERR! typeerror http://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:
npm ERR! /root/npm-debug.log

I've upload the The /root/npm-debug.log file as the error suggests.

npm-debug.log

How can I solve it?

Thanks.

@ljharb
Copy link
Contributor

ljharb commented Mar 11, 2020

npm 3 is very old, as is node 8. What happens if you upgrade either or both?

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

3 participants