【问题标题】:Why any of my npm commands not working ? always gives ERR whine installing npm install?为什么我的任何 npm 命令都不起作用?安装 npm install 时总是给出错误?
【发布时间】:2021-03-23 10:51:27
【问题描述】:
C:\Users\lenovo>node -v
v14.16.0

C:\Users\lenovo>npm -v
'CALL "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs\\node_modules\npm\bin\npm-cli.js" prefix -g' is not recognized as an internal or external command,
operable program or batch file.
6.14.11

C:\Users\lenovo>npm config
'CALL "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs\\node_modules\npm\bin\npm-cli.js" prefix -g' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! Usage:
npm ERR! npm config set <key> <value>
npm ERR! npm config get [<key>]
npm ERR! npm config delete <key>`enter code here`
npm ERR! npm config list [--json]
npm ERR! npm config edit
npm ERR! npm set <key> <value>
npm ERR! npm get [<key>]
npm ERR!
npm ERR! alias: c

C:\Users\lenovo>

【问题讨论】:

标签: node.js npm config


【解决方案1】:

您运行 npm config 但此命令需要选项和/或参数。在npm ERR! Usage:之后解释了

您可以找到文档here

【讨论】:

    猜你喜欢
    • 2013-05-01
    • 2017-06-17
    • 2015-02-25
    • 1970-01-01
    • 2019-12-11
    • 2021-12-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多