我下载了teams-for-linux
当我尝试
static ArrayList<String> shallowCopy(ArrayList<String> original) {
ArrayList<String> copy = new ArrayList<>();
for (String s : original) {
copy.add(s);
}
return copy;
}
static ArrayList<String> deepCopy(ArrayList<String> original) {
ArrayList<String> copy = new ArrayList<>();
for (String s : original) {
String copyOfString = new String(s); // note that each string is copied as well
copy.add(copyOfString);
}
return copy;
}
我不知道应该如何在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.
我已经在licence.md中阅读了许可证,但是我不知道是否应该放置未许可证或其他内容。 编辑 我尝试过
{
"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。
答案 0 :(得分:1)
它是WARN
,而不是ERROR
。
该警告是因为您可能忘记了license
和repository
。
您不需要拥有license
和repository
。
尝试使用此:
"repository": {
"type": "git",
"url": "https://github.com/ivelkov/teams-for-linux.git"
}
如果没有,则不需要添加它,请选中SPDX License List。