gpt4 book ai didi

npm install -g *无参数*

转载 作者:行者123 更新时间:2023-12-01 13:41:16 33 4
gpt4 key购买 nike

命令 npm install -g(无参数)有什么作用?我打开了 npm 文档,但没有得到它:

In global mode (ie, with -g or --global appended to the command), it installs the current package context (ie, the current working directory) as a global package.

这是什么意思?

最佳答案

这意味着无论当前在哪个项目中,npm 都会从当前项目文件夹中的 package.json 中获取依赖项,然后在全局安装这些依赖项。

关于npm install -g *无参数*,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39910791/

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