-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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] Missing required argument #1 #681
Comments
Same here |
Same problem here. |
Same Problem here. |
Same problem, Nothing changed since friday and it was working fine then. |
Same problem. It appears something was released that breaks older versions of npm (we were using 3.5.2, the most current version using apt-get). We fixed this by updating to the latest version of npm as a RUN command in our Dockerfile
We were installing npm via apt-get in a list of apt installs, but the latest release of npm isn't available through the apt install option. So, after we install the old version of npm in the apt list we updated it on the next line of the Dockerfile with the command above. Hopefully updating it will not break anything you're doing, and hope this helps some of you. |
Ran into this as well, installing npm@latest seems to be a good enough workaround for now. |
@RyanMannix is there a chance you could provide some information about that Dockerfile? The original issue has a If you're stuck at
to your Dockerfiles in order to get builds/deploys working again. I've created a TODO for myself to ask our engineering team if there were changes put forth on Friday. Thanks for everyone speaking up about this and @pettazz for tweeting about it :D |
@mikemimik its notable tho that this seems caused by a registry-side change, since it’s only started happening recently. I’ve seen it on node 5 on windows on npm versions that previously worked. |
I started hitting this as the other people. I believe that npm 3.5.2 (and node 8) is the latest version available from apt on Ubuntu 18.04 (which is the current LTS for Ubuntu). The command give above to update npm worked fine for me though. (Thanks!) |
@mikemimik I unfortunately cannot share the docker file itself, but I can tell you we basically update apt, install apt packages listed in a requirements file, and then in this case apt update npm. Then pip install packages from a requirements list. I would expect something similar to this is available online if you search. |
If someone is hitting this reliably, can you share your package.json file, or at least, the I can't reproduce this with npm v3.5.2 just installing the packages shown in the debug log. There was a registry-side change regarding urls in the That being said, really, npm v3.5.2 is from 2015, and way out of any kind of LTS support by this team. Node 8 is end of life'd as of Jan 1 2020. So, the answer probably is to just upgrade your node and npm, and complain to your system package provider to upgrade off of those unsupported and insecure versions. |
Since Prior to this commit: ljharb/json-file-plus@93c227c that package consistently failed in node 5 on appveyor. |
Node 5 hit its end of life support date on 2016-06-30, 1295 days ago. It is not supported, and should not be expected to work with any recent or future version of npm. |
That is certainly a stance you can take, but it remains the case that a registry change broke clients that previously worked just fine, and given that npm does not offer a simple way to upgrade to "the latest npm that works on an arbitrary node version", this is causing a lot of friction for use cases that worked fine for years until a week or two ago. |
@ljharb Again, until I'm able to get evidence to the contrary (eg, with a reproducible case), I'm extremely dubious that this failure had anything to do with the registry changes that happened around the same time. It certainly wouldn't be the first time I was wrong about that, but it also wouldn't be the first time that something "worked" and then a bug lying in wait for years was found coincidentally around the same time as an unrelated change to the registry that was not the cause. Without a reproduction case, it's all speculation. npm 3.5.2 is able to install all the packages referenced in the npm-debug.log file just fine, as far as I can tell. |
You're unable to reproduce it with the |
I haven't tried in that configuration. That's not how this error is happening, though:
So I'd be surprised if it's specific to Windows or node 5 in any way. It may well be that there is more than one way to get an |
same shit too. @HotGreenPeas @byv55f5f5 @cerpusoddarne and all other guys who catch up this trouble, can you please write in this issue my versions: $ npm --version
3.5.2
$ node --version
v8.10.0 |
I am in the same boat with a Linux subsystem on Windows 10 with fresh install of node and npm:
|
Same here :( Works fine on my machine but can not install dependencies on DigitalOcean Ubuntu machine. |
Same issue here since Friday using Ubuntu 18.04.4 LTS clean installs with the provider repo packages :( and just over a month until 20.04 LTS is released! |
I got the same issue but i made if run perfectky by clearing the npm cauche, and then update and the npm to stable version and reinstall the values. ` `
|
Updating and reinstalling the latest version of npm supported by the node version fixed this issue for me. For anyone using nvm as their version manager on WSL 2, Ubuntu 18.04
I also likely had a conflicting installation of npm installed by the OS package manager instead of nvm, which may explain the benefit of running |
Just wanted to add that
|
I just ran into this, too. |
Add devcontainer upddate package.json to reflect the requirements: * node 8 due to rollup-plugin-commonjs error with node >= 10: "The argument 'path' must be a string or Uint8Array without null bytes" * npm >= 4 due to npm/cli#681
Dude, thank you so much! |
Someone please fix it. I've a project to deploy, waiting for it. Can anyone tell me how to ROLL IT BACK in Ubuntu Linux Distro? |
Me too !!! |
This one works (the only one perhaps) for me.
|
At least for Meteor versions:
I realized the problem was that I was installing |
Had this issue, resolved it by deleting C:\Users%USERNAME%\AppData\Roaming\npm* directories. Tried many of the other suggestions, even a uninstall/reinstall of Node did not help. |
Same here. None of the solutions in this thread worked. I can only conclude npm is simply broken. |
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-debug.log
The text was updated successfully, but these errors were encountered: