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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-18 16:32:38  来源:igfitidea点击:

npm WARN No repository field

node.jsgitbashember.js

提问by user61629

enter image description here

在此处输入图片说明

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

  1. npm WARN No repository field:

    This is a warning message telling you that the package.jsonfile doesn't have a defined repository. This really should be defined, but won't adversely affect the run of your program.

  2. COSMIC_BUCKET=your-bucket-slug npm startCOSMIC_BUCKET=your-bucket-slugsets an environment variable called COSMIC_BUCKETequal to the value your-bucket-slug. This is a runtime variable for CosmicJS. npm startruns a command which starts the web application.

  1. npm WARN No repository field

    这是一条警告消息,告诉您该package.json文件没有定义的repository. 这确实应该定义,但不会对程序的运行产生不利影响。

  2. COSMIC_BUCKET=your-bucket-slug npm startCOSMIC_BUCKET=your-bucket-slug设置一个名为COSMIC_BUCKET等于 value的环境变量your-bucket-slug。这是CosmicJS的运行时变量。 npm start运行启动 Web 应用程序的命令。