bash npm WARN 没有存储库字段
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/46900223/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
npm WARN No repository field
提问by user61629
I'm trying to start work on a project I found: https://github.com/cosmicjs/ember-real-estate-website?files=1. I want to set it up to run locally following the directions in the screenshot, but I don't know much about node/npm. I'm trying to set this up to run emberjs in pycharm 2017 using git-bash as my terminal in win7. I have npm and node installed along with the jetbrains emberjs plugin. When I run :
我正在尝试开始我发现的一个项目:https: //github.com/cosmicjs/ember-real-estate-website?files=1。我想按照屏幕截图中的说明将其设置为在本地运行,但我对 node/npm 了解不多。我正在尝试将其设置为在 pycharm 2017 中运行 emberjs,使用 git-bash 作为我在 win7 中的终端。我安装了 npm 和 node 以及 jetbrains emberjs 插件。当我运行时:
npm i
I see:
我懂了:
....
-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
| `-- [email protected]
+-- [email protected]
`-- [email protected]
npm WARN [email protected] No repository field.
I don't know what to regarding the next line:
我不知道如何处理下一行:
COSMIC_BUCKET=your-bucket-slug npm start
What does this mean? does it have anything to do with "npm WARN No repository field" ?
这是什么意思?它与“npm WARN No repository field”有什么关系?
回答by Derek Brown
npm WARN No repository field
:This is a warning message telling you that the
package.json
file doesn't have a definedrepository
. This really should be defined, but won't adversely affect the run of your program.COSMIC_BUCKET=your-bucket-slug npm start
COSMIC_BUCKET=your-bucket-slug
sets an environment variable calledCOSMIC_BUCKET
equal to the valueyour-bucket-slug
. This is a runtime variable for CosmicJS.npm start
runs a command which starts the web application.