gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 08:34:26 28 4
gpt4 key购买 nike

尝试使用 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! typeerrorat 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! typeerrorat 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 npmERR! typeerror This is an error with npm itself. Please report thiserror 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/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com