npm安装模块的 npm WARN [email protected] No description 和 npm WARN [email protected] No repository filed 的解决方法
程序员文章站
2022-03-03 17:39:12
...
npm安装模块的 npm WARN [email protected] No description 和 npm WARN [email protected] No repository filed 的解决方法
npm install vue –save
出现上面两个错误
根据提示路径手动打开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 这里为true!!
}
最后再运行
npm install vue –save
完美解决