如何使用 Atom linter 修复我在 Atom 上遇到的多个错误?
How do I fix the multiple errors that I'm facing on Atom with the Atom linter?
我在使用 Atom,我的界面当前显示为:
{错误 运行 gjslint}(x4)
{错误 运行 选择性}(x4)
当我打开错误部分时,我发现了以下内容:
[Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
当我开始使用安装了 Atom linter 及其相关细节的新文档时,所有这些都出现了。那么,我该如何着手纠正这些错误呢?
linter-gjslint包对gjslint
有依赖,需要单独安装,文档中提到:
Before using this plugin, you must ensure that gjslint is installed on your system. To install gjslint, read this.
这是大多数 linter 包中的常见做法
跨不同的编辑器。
我在使用 Atom,我的界面当前显示为:
{错误 运行 gjslint}(x4) {错误 运行 选择性}(x4)
当我打开错误部分时,我发现了以下内容:
[Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running gjslint Error: Failed to spawn command `gjslint`. Make sure `gjslint` is installed and on your PATH
at VM310 helpers.js:130
(anonymous) @ /Users/Timothy/.atom/packages/linter/dist/index.js:1
linter-registry.ts:133 [Linter] Error running selective Error: ENOENT: no such file or directory, open '/Users/Timothy/Documents/config.selective'
at Object.openSync (fs.js:440)
at Object.func [as openSync] (electron/js2c/asar.js:140)
at readFileSync (fs.js:342)
at fs.readFileSync (electron/js2c/asar.js:542)
at module.exports (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/rehype/rehype.js:14)
at Object.lint (/Users/Timothy/.atom/packages/linter-selective/node_modules/@selective/atom/atom.js:19)
at linter-registry.ts:107
at new Promise (<anonymous>)
at Bt.lint (linter-registry.ts:103)
当我开始使用安装了 Atom linter 及其相关细节的新文档时,所有这些都出现了。那么,我该如何着手纠正这些错误呢?
linter-gjslint包对gjslint
有依赖,需要单独安装,文档中提到:
Before using this plugin, you must ensure that gjslint is installed on your system. To install gjslint, read this.
这是大多数 linter 包中的常见做法 跨不同的编辑器。