npm ERR! typeerror Error: Missing required argument #1

Posted 柳鲲鹏

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了npm ERR! typeerror Error: Missing required argument #1相关的知识,希望对你有一定的参考价值。

  • 具体错误
$ sudo npm install -g @syberos/cli
loadDep:shelljs → 304     ▄ ╢██████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine ora@5.1.0: wanted: "node":">=10" (current: "node":"8.10.0","npm":loadDep:shelljs → addName ▌ ╢██████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine mem-fs-editor@7.0.1: wanted: "node":">=10.0.0" (current: "node":"loadDep:shelljs → mapToRe ▀ ╢██████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine semver@7.3.8: wanted: "node":">=10" (current: "node":"8.10.0","npnpm WARN deprecated querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm ERR! Linux 5.4.0-84-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "@syberos/cli"
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 WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/tsit/npm-debug.log
  • 解决办法

升级npm

sudo npm install -g npm

以上是关于npm ERR! typeerror Error: Missing required argument #1的主要内容,如果未能解决你的问题,请参考以下文章

无法安装 Angular cli npm -ERR!代码 Z_BUF_ERROR npm ERR! errno -5 npm 错误! zlib:文件意外结束

npm install 报错(npm ERR! errno -4048,Error: EPERM: operation not permitted,)解决方法

解决npm安装模块时 npm err! registry error parsing json

npm 安装报错 “npm ERR! code Z_BUF_ERROR“ 解决方法

npm install 报错(npm ERR! errno -4048,Error: EPERM: operation not permitted,)解决方法

npm err ! Error: connect ECONNREFUSED 127.0.0.1:8087