首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何用Atom linter修复我在Atom上面临的多个错误?

如何用Atom linter修复我在Atom上面临的多个错误?
EN

Stack Overflow用户
提问于 2021-11-22 21:32:59
回答 1查看 123关注 0票数 0

我在Atom上,我的界面现在显示如下:

{错误运行gjslint}(x4) {错误运行选择}(X4)

当我打开错误部分时,我发现如下:

代码语言:javascript
复制
[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的新文档时,它们都出现了。那么,我该如何补救这些错误呢?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-11-23 00:24:25

林特包依赖于需要单独安装的gjslint,如文档中所述:

在使用此插件之前,必须确保在系统上安装了gjslint。要安装gjslint,请阅读

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70072617

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档