"我"标志在npm中有什么作用?
我看到它像这样使用:
npm i backbone.marionette
我查看了npm文档并在Google上搜索了相当数量的文档.我不确定它是旗帜还是命令,或者根本不是npm的东西?
小智 64
我的标志是安装.来自文档:
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.
Run Code Online (Sandbox Code Playgroud)
请参考官方文件以获取更多信息点击这里
Ali*_*ahi 16
在我是NPM-安装别名这是中提到https://docs.npmjs.com/cli/install.
您可以将它与所有npm-install标志一起使用.例如,下面将使用npm i安装angular-js amd live server
npm i angular2@2.0.0-alpha.45 --save --save-exact
npm i live-server --save-dev
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
43495 次 |
| 最近记录: |