打开 Atom 时,我不断收到此错误消息。我试过调查它,但我似乎找不到错误信息在哪里?我是否遗漏了 JSON 文件中的某些内容?
错误信息标题
加载 my-package 包失败
untitled1:1
LFUTF-8Plain Text
Failed to load the my-package package
Unexpected token } in JSON at position 160 in /Users/tech-a48/.atom/packages/my-package/package.json
Hide Stack Trace
SyntaxError: Unexpected token } in JSON at position 160
at Object.parse (native)
at parseObject (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/season/lib/cson.js:54:19)
at parseContentsSync (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/season/lib/cson.js:68:16)
at Object.readFileSync (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/season/lib/cson.js:170:14)
at PackageManager.module.exports.PackageManager.loadPackageMetadata (/Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:721:29)
at PackageManager.module.exports.PackageManager.loadPackage (/Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:434:35)
at /Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:412:19
at Config.module.exports.Config.transact (/Applications/Atom.app/Contents/Resources/app.asar/src/config.js:312:16)
at PackageManager.module.exports.PackageManager.loadPackages (/Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:407:19)
at /Applications/Atom.app/Contents/Resources/app.asar/src/atom-environment.js:811:28
at /Users/tech-a48/.atom/packages/my-package/package.json:1:1
这是 JSON 文件。我是完全失明还是错过了什么?
{
"name": "my-package",
"main": "./lib/my-package",
"version": "0.0.0",
"description": "A short description of your package",
"keywords": [
],
},
{
"repository": "https://github.com/atom/my-package",
"license": "MIT",
"engines": {
"atom": ">=1.0.0 <2.0.0"
},
"dependencies": {
}
}