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

[BUG] Got this error, whenever i tired to npm install (ubuntu 18.04) #5010

Closed
2 tasks done
Sanj4real opened this issue Jun 12, 2022 · 3 comments
Closed
2 tasks done
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 8.x work is associated with a specific npm 8 release

Comments

@Sanj4real
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

npm ERR! Linux 5.4.0-117-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
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! /media/sanjay/Data 1/nextproject/npm-debug.log

Expected Behavior

  1. have to install node module

Steps To Reproduce

No response

Environment

  • npm: 3.5.2
  • Node.js: v8.10.0
  • OS Name: ubuntu 18.04
@Sanj4real Sanj4real added Bug thing that needs fixing Needs Triage needs review for next steps Release 8.x work is associated with a specific npm 8 release labels Jun 12, 2022
@BalaM314
Copy link

npm ERR! Please include the following file with any support request:
npm ERR! /media/sanjay/Data 1/nextproject/npm-debug.log

@wraithgar
Copy link
Member

The version of node and npm you are running are very old and not supported anymore. Please try updating both to at least node@14 (which is in maintenance support) or newer, and npm@8

@AndnixSH
Copy link

AndnixSH commented Jul 1, 2022

I encounted the same issue. Turns out apt is out of date, i don't know why. I ended up installing nvm https://heynode.com/tutorial/install-nodejs-locally-nvm/ and ran npm script curl -qL https://www.npmjs.com/install.sh | sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 8.x work is associated with a specific npm 8 release
Projects
None yet
Development

No branches or pull requests

4 participants