C:\Users\Administrator>npm install axios npm WARN Administrator@1.0.0 No description npm WARN Administrator@1.0.0 No repository field. + axios@0.24.0 updated 1 package and audited 2 packages in 3.204s found 0 vulnerabilities
查看package.json文件
{
"name": "Administrator",
"version": "1.0.0",
"description": "",
"main": "index.js",
"dependencies": {
"axios": "^0.24.0"
},
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC"
}
根据提示路径, 手动打开package.json文件, 修改 description和private字段.
{
"name": "ding",
"version": "1.0.0",
"description": "什么都可以 不为空即可",
"main": "index.js",
"dependencies": {
"ij-rpc-client": "^0.3.2",
"vue": "^2.6.12"
},
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"private": true
}