npm -i 标志是什么意思? [英] What does the npm -i flag mean?

查看:75
本文介绍了npm -i 标志是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

npm 中的i"标志有什么作用?

What's does the "i" flag do in npm?

我看到它是这样使用的:

I saw it used like this:

npm i bone.marionette

我查看了 npm 文档并在 Google 上进行了大量搜索.我不确定它是标志还是命令,还是根本不是 npm 的东西?

I looked in the npm documentation and searched for it on Google a fair amount. I'm not sure if it is a flag or command or maybe not an npm thing at all?

推荐答案

i 标志用于安装.来自文档:

the i flag is for install. From documentation:

npm install
npm install <pkg>
npm install <pkg>@<tag>
npm install <pkg>@<version>
npm install <pkg>@<version range>
npm install <folder>
npm install <tarball file>
npm install <tarball url>
npm install <git:// url>
npm install <github username>/<github project>

Can specify one or more: npm install ./foo.tgz bar@stable /some/folder
If no argument is supplied and ./npm-shrinkwrap.json is 
present, installs dependencies specified in the shrinkwrap.
Otherwise, installs dependencies from ./package.json.

更多信息请参考官方文档这里

Refer official document for more information here

这篇关于npm -i 标志是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆