如何修复我在使用 Atom linter 的 Atom 上遇到的多个错误?



我在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,需要单独安装,如文档中所述:

在使用此插件之前,您必须确保gjslint已安装在您的系统上。要安装gjslint,请阅读以下内容。

这是大多数短绒包装的常见做法跨不同的编辑器。

相关内容

最新更新