我正在尝试在Fedora上从源代码构建Atom编辑器。我已经安装了所有依赖项,但我无法通过nvm安装Node.js 6.x(按照Atom的安装指南“https://github.com/atom/atom/blob/master/docs/build-instructions/linux.md”中的建议)。 所以我通过nvm安装了Node.js,我得到了Node.js v7.7.4。现在,当我在atom目录上运行“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)
我想知道如何安装Node.js 6.x并在构建Atom时使用它而不是使用Node.js v7.7.4
答案 0 :(得分:1)
nvm install 6.x
nvm use 6.x
如果还是有问题,
nvm uninstall 7.7.4