javascript - 尝试安装软件包时 NPM 缺少参数 #1 错误

标签 javascript npm npm-install

尝试使用 npm install 安装包时出现此错误。似乎是 npm 本身的问题。我在 Linux Mint 19.3 Cinnamon 上运行它。

npm ERR! Linux 5.4.0-42-generic npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "i" 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 ERR! Please include the following file with any support request: npm ERR! /home/theoko/Desktop/fatigue-app/npm-debug.log

最佳答案

安装了过时版本的节点 ( https://github.com/npm/cli/issues/681#issuecomment-640470740 )。

关于javascript - 尝试安装软件包时 NPM 缺少参数 #1 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64865905/

相关文章:

javascript - Three.JS - 自定义网格上的光线转换

javascript - HTML 无序列表中的第三级

react-native - npm 安装时遇到代码 EWORKSPACESCONFIG 问题

javascript - 开始 0 不透明度和 onClick 设置不透明度为 100

node.js - npm 不起作用,总是出现这个错误 -> 错误 : Cannot find module 'are-we-there-yet'

javascript - 我可以在 WebStorm 中添加 "virtual"文件夹来轻松添加和隐藏配置文件吗?或者是否有一个功能可以轻松切换特定文件的可见性?

node.js - 更新 Google Compute Engine 上的 Node/NPM?

node.js - 在 v8-debug@0.4.6 安装脚本 'node-pre-gyp install --fallback-to-build 时失败

angular - ng update @angular/cli @angular/core 或 npx @angular/cli@13 update @angular/core@13 @angular/cli@13 不工作

javascript - 使用 ko.utils.arrayForEach 迭代一个 observableArray