nylas-mail icon indicating copy to clipboard operation
nylas-mail copied to clipboard

N1 Build failing with error "Failed at the [email protected] install script 'node ./script/download-node.js' "

Open yadav-avanish opened this issue 9 years ago • 3 comments

I'm trying to build N1 from source on a mac machine with OS X El Capitan (Version 10.11.6) with the help of Getting Started guide at "https://github.com/nylas/N1/blob/master/CONTRIBUTING.md" but it throws the error Cannot find module '../src/request'

Error log: 1. `[email protected] install /Users/avanishyadav/N1/apm/node_modules/atom-package-manager

node ./script/download-node.js

module.js:472 throw err; ^` 2.

Error: Cannot find module '../src/request' at Function.Module._resolveFilename (module.js:470:15) at Function.Module._load (module.js:418:25) at Module.require (module.js:498:17) at require (internal/module.js:20:19) at Object.<anonymous> (/Users/avanishyadav/N1/apm/node_modules/atom-package-manager/script/download-node.js:16:13) 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.runMain (module.js:605:10) at run (bootstrap_node.js:420:7) at startup (bootstrap_node.js:139:9) at bootstrap_node.js:535:3

yadav-avanish avatar Jan 09 '17 19:01 yadav-avanish

+1

jacobduba avatar Jan 15 '17 02:01 jacobduba

I solved it. You have to be running node 6 not 7. It would be nice if the developers could make it work in node 7.

jacobduba avatar Jan 15 '17 02:01 jacobduba

Thanks MooShoe, I'll give it a go. Hopefully it works for me as well.

yadav-avanish avatar Jan 15 '17 02:01 yadav-avanish