简体   繁体   English

使用Node.js 7.7.4从源构建Atom时出错

[英]Error building Atom from source with Nodejs 7.7.4

I'm trying to build the Atom editor from source on Fedora. 我正在尝试从Fedora上的源代码构建Atom编辑器。 I've already installed all dependencies but I couldn't install Node.js 6.x via nvm (as recommended on Atom's Installation Guide " https://github.com/atom/atom/blob/master/docs/build-instructions/linux.md "). 我已经安装了所有依赖项,但无法通过nvm安装Node.js 6.x(如《 Atom安装指南》中的建议“ https://github.com/atom/atom/blob/master/docs/build-instructions /linux.md “)。 So I installed Node.js via nvm and I got Node.js v7.7.4. 因此,我通过nvm安装了Node.js,并获得了Node.js v7.7.4。 Now when I run "script/build" on the atom directory I get this error message: 现在,当我在原子目录上运行“ script / build”时,出现以下错误消息:

/home/andre/src/atom/script/lib/verify-machine-requirements.js:23
throw new Error(`Atom does not build properly on node v7+. node v${fullVersion} is installed.`)
^

Error: Atom does not build properly on node v7+. node v7.7.4 is installed.
at verifyNode (/home/andre/src/atom/script/lib/verify-machine-requirements.js:23:11)
at module.exports (/home/andre/src/atom/script/lib/verify-machine-requirements.js:10:3)
at Object.<anonymous> (/home/andre/src/atom/script/bootstrap:18:1)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)

I'd like to know how can I install Node.js 6.x and use it when building Atom instead of using Node.js v7.7.4 我想知道如何安装Node.js 6.x并在构建Atom而不是使用Node.js v7.7.4时使用它

nvm install 6.x  
nvm use 6.x  

If still problem, nvm uninstall 7.7.4 如果仍然有问题, nvm uninstall 7.7.4

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM