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

issue from npm #2041

Closed
sindhurgowda opened this issue Oct 26, 2020 · 7 comments
Closed

issue from npm #2041

sindhurgowda opened this issue Oct 26, 2020 · 7 comments
Labels
Bug thing that needs fixing Release 7.x work is associated with a specific npm 7 release

Comments

@sindhurgowda
Copy link

npm ERR! code EINVALIDTYPE
npm ERR! typeerror Error: Argument #2: Expected array but got string
npm ERR! typeerror at EventEmitter.install (C:\Program Files\nodejs\node_modules\npm\lib\install.js:195:3)
npm ERR! typeerror at Object.commandCache. (C:\Program Files\nodejs\node_modules\npm\lib\npm.js:156:13)
npm ERR! typeerror at C:\Program Files\nodejs\node_modules\npm\lib\link.js:93:24
npm ERR! typeerror at callback (C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:295:20)
npm ERR! typeerror at FSReqCallback.oncomplete (fs.js:176:21)
npm ERR! typeerror This is an error with npm itself. Please report this error at:
npm ERR! typeerror https://npm.community

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\HP\AppData\Roaming\npm-cache_logs\2020-10-26T05_51_40_360Z-debug.log

@sindhurgowda sindhurgowda added Bug thing that needs fixing Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release labels Oct 26, 2020
@sindhurgowda
Copy link
Author

let me know how to solve issue

@ljharb
Copy link
Contributor

ljharb commented Oct 26, 2020

What version of node and npm are you using?

@sindhurgowda
Copy link
Author

npm : 6.14.7
node : v14.7.0

@ljharb
Copy link
Contributor

ljharb commented Oct 26, 2020

Can you try two things:

  1. npm install -g npm@6, and see if it happens with the latest npm 6?
  2. if that still fails, npm install -g npm@7 and see if it happens with npm 7?

@sindhurgowda
Copy link
Author

npm install -g npm@6 and npm install -g npm@7 tried installing but still failed

@ljharb
Copy link
Contributor

ljharb commented Oct 26, 2020

If both of those failed, could you try installing the latest version of node 14, 14.13?

@wraithgar wraithgar removed the Needs Triage needs review for next steps label Jan 21, 2021
@wraithgar
Copy link
Member

If this is still a bug please open a new issue following the new issue template, including steps to reproduce so we can try to debug this better.

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

No branches or pull requests

3 participants