An unexpected error occurred: "C:\\Users\\86137\\Desktop\\block-design-jeecg\\package.json: Unexpected token / in JSON at position 2589".
时间: 2023-11-09 16:06:37 浏览: 40
问题产生的原因是JSON文件中出现了不符合JSON格式的字符,导致解析失败。解决方法是找到该位置并进行修改。可以使用一些在线JSON格式化工具来帮助定位问题所在。
代码示例:
```json
{
"name": "example",
"version": "1.0.0",
"description": "example project",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "your name",
"license": "ISC",
"dependencies": {
"express": "^4.17.1"
},
"devDependencies": {
"eslint": "^7.32.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-plugin-import": "^2.24.2"
}
/invalid/character/here/
}
```