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

Invalid package name "buffer 2" #959

Closed
perazzo opened this issue Feb 27, 2020 · 2 comments
Closed

Invalid package name "buffer 2" #959

perazzo opened this issue Feb 27, 2020 · 2 comments

Comments

@perazzo
Copy link

perazzo commented Feb 27, 2020

If I try to install any package, it is returning the error:

Unhandled rejection Error: Invalid package name "buffer 2": name can only contain URL-friendly characters
    at invalidPackageName (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:82:15)
    at Result.setName (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:118:11)
    at new Result (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:107:23)
    at Function.resolve (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:54:15)
    at computeVersionSpec (/usr/local/lib/node_modules/npm/lib/install/deps.js:311:21)
    at Installer.normalizeCurrentTree (/usr/local/lib/node_modules/npm/lib/install.js:404:68)
    at Array.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8)
    at LOOP (/usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:15:14)
    at /usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:18:7
    at iferr (/usr/local/lib/node_modules/npm/lib/install.js:362:5)
    at a (/usr/local/lib/node_modules/npm/node_modules/iferr/iferr.js:3:64)
    at asyncMap (/usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:27:18)
    at exports.getAllMetadata (/usr/local/lib/node_modules/npm/lib/install/deps.js:219:3)
    at Installer.loadArgMetadata (/usr/local/lib/node_modules/npm/lib/install.js:360:3)
    at /usr/local/lib/node_modules/npm/lib/install.js:695:16
    at BB.join.then (/usr/local/lib/node_modules/npm/lib/install/read-shrinkwrap.js:34:16)

npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://npm.community>
@w3dg
Copy link

w3dg commented May 12, 2020

it is highly likely that the package with that name doesn't exist. i was able to find package called 'buffer2' or 'buffer-2' but no 'buffer 2'.

@ljharb
Copy link
Contributor

ljharb commented May 12, 2020

A space is invalid in package names.

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

4 participants