Node.js npm警告无存储库字段,无许可证字段

Node.js npm警告无存储库字段,无许可证字段,node.js,Node.js,我下载了 当我尝试 cd app && npm i teams-for-linux@0.0.8 /home/milenko/teams-for-linux/app └── ajv@6.5.2 extraneous npm WARN teams-for-linux@0.0.8 No repository field. npm WARN teams-for-linux@0.0.8 No license field. 我不知道如何在package.json中编辑许可证 { "

我下载了

当我尝试

cd app && npm i
teams-for-linux@0.0.8 /home/milenko/teams-for-linux/app
└── ajv@6.5.2  extraneous

npm WARN teams-for-linux@0.0.8 No repository field.
npm WARN teams-for-linux@0.0.8 No license field.
我不知道如何在package.json中编辑许可证

{
  "name": "teams-for-linux",
  "version": "0.0.8",
  "description": "Unofficial client for Microsoft Teams for Linux",
  "homepage": "https://github.com/ivelkov/teams-for-linux",
  "keywords": [
    "Teams",
    "Microsoft Teams"
  ],
  "repository": {
    "type": "git",
    "url": "git+ssh://github.com/ivelkov/teams-for-linux"
  },
  "author": "Ivelin Velkov <ivelin.velkov@gmail.com>",
  "license": "SEE LICENSE IN LICENSE.md",
  "scripts": {
    "start": "electron ./app",
    "start-debug": "WEB_DEBUG=1 electron --disable-http-cache ./app",
    "pack": "build --dir",
    "dist": "build"
  },
  "devDependencies": {
    "electron": "^1.8.4",
    "electron-builder": "^20.8.2"
  },
  "build": {
    "appId": "teams-for-linux",
    "asar": false,
    "linux": {
      "category": "Network;Chat",
      "packageCategory": "net",
      "executableName": "teams",
      "synopsis": "Microsoft Teams for Linux",
      "description": "Unofficial Microsoft Teams client for Linux using Electron. It uses the Web App\n and wraps it as a standalone application using Electron.",
      "desktop": {
        "Name": "Microsoft Teams for Linux",
        "Comment": "Unofficial client for Microsoft Teams for Linux",
        "StartupWMClass": "teams-for-linux"
      },
      "target": [
        "rpm",
        "deb",
        "pacman",
        "tar.gz"
      ]
    }
  },
  "dependencies": {}
}
收到了和我之前发布的相同的警告


我的节点版本是4.2.6。

它是
警告
,而不是
错误

它发出警告,因为您可能忘记了
许可证
存储库

您不需要拥有
许可证
存储库

尝试使用以下方法:

"repository": {
  "type": "git",
  "url": "https://github.com/ivelkov/teams-for-linux.git"
}

如果没有,也不需要添加,请检查。

这只是一个警告,提醒您这两个字段不在模块的package.json文件中。你可以忽略它。更多信息请点击此处:
"repository": {
  "type": "git",
  "url": "https://github.com/ivelkov/teams-for-linux.git"
}