简体   繁体   中英

Error building Atom from source with Nodejs 7.7.4

I'm trying to build the Atom editor from source on Fedora. 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 "). So I installed Node.js via nvm and I got Node.js v7.7.4. Now when I run "script/build" on the atom directory I get this error message:

/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

nvm install 6.x  
nvm use 6.x  

If still problem, nvm uninstall 7.7.4

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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