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

npm ERR! typeerror Error: Missing required argument #621

Closed
ashijay opened this issue Dec 19, 2019 · 3 comments
Closed

npm ERR! typeerror Error: Missing required argument #621

ashijay opened this issue Dec 19, 2019 · 3 comments

Comments

@ashijay
Copy link

ashijay commented Dec 19, 2019

Error in installing with npm install. It was working till last week and with no change from today it started to fail.

Steps to Reproduce

13:07:35 npm ERR! Linux 3.10.0-1062.9.1.el7.x86_64
13:07:35 npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
13:07:35 npm ERR! node v6.7.0
13:07:35 npm ERR! npm v3.10.3
13:07:35 npm ERR! code EMISSINGARG
13:07:35
13:07:35 npm ERR! typeerror Error: Missing required argument #1
13:07:35 npm ERR! typeerror at andLogAndFinish (/usr/lib/node_modules/npm/lib/fetch-package-metadata.js:31:3)
13:07:35 npm ERR! typeerror at fetchPackageMetadata (/usr/lib/node_modules/npm/lib/fetch-package-metadata.js:51:22)
13:07:35 npm ERR! typeerror at resolveWithNewModule (/usr/lib/node_modules/npm/lib/install/deps.js:515:12)
13:07:35 npm ERR! typeerror at /usr/lib/node_modules/npm/lib/install/deps.js:516:7
13:07:35 npm ERR! typeerror at /usr/lib/node_modules/npm/node_modules/iferr/index.js:13:50
13:07:35 npm ERR! typeerror at /usr/lib/node_modules/npm/lib/fetch-package-metadata.js:37:12
13:07:35 npm ERR! typeerror at addRequestedAndFinish (/usr/lib/node_modules/npm/lib/fetch-package-metadata.js:67:5)
13:07:35 npm ERR! typeerror at returnAndAddMetadata (/usr/lib/node_modules/npm/lib/fetch-package-metadata.js:121:7)
13:07:35 npm ERR! typeerror at pickVersionFromRegistryDocument (/usr/lib/node_modules/npm/lib/fetch-package-metadata.js:138:20)
13:07:35 npm ERR! typeerror at /usr/lib/node_modules/npm/node_modules/iferr/index.js:13:50
13:07:35 npm ERR! typeerror This is an error with npm itself. Please report this error at:
13:07:35 npm ERR! typeerror http://github.com/npm/npm/issues

I tried upgrading npm version which didn't worked. We also are not using type: module in package.json file as discussed in other issues.

@ljharb
Copy link
Contributor

ljharb commented Dec 19, 2019

A stack trace from npm 6 (not 3) would probably help.

@ashijay
Copy link
Author

ashijay commented Dec 20, 2019

So I am using a docker image file currently where I am not able to update npm version. I am trying a new docker itself.

Though I wanted to check what could have happened on a weekend that may result in this error. Nothing changed on the code or dependencies side.

I will keep you posted on the new docker image testing

@ashijay
Copy link
Author

ashijay commented Dec 26, 2019

New docker image from npm6 worked fine. Still old working npm3 was working fine till now and suddenly stopped working is still a question.

Since using a different docker image resolved issue for me, will close the case

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

2 participants