tjanczuk / edge

Run .NET and Node.js code in-process on Windows, MacOS, and Linux
http://tjanczuk.github.io/edge
Other
5.41k stars 642 forks source link

Build Error: Cannot find module 'nan' #688

Open qzzf1w opened 5 years ago

qzzf1w commented 5 years ago

C:\Users\qzzf1w\Downloads\edge-master\edge-master\tools>build.bat release 8.2.1 gyp info it worked if it ends with ok gyp info using node-gyp@5.0.2 gyp info using node@8.2.1 | win32 | ia32 gyp info find Python using Python version 2.7.16 found at "C:\Python27\python.exe" gyp info find VS using VS2015 (14.0) found at: gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio 14.0" gyp info find VS run with --verbose for detailed information gyp info spawn C:\Python27\python.exe gyp info spawn args [ 'C:\Users\qzzf1w\AppData\Roaming\npm\node_modules\node-gyp\gyp\gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'msvs', gyp info spawn args '-I', gyp info spawn args 'C:\Users\qzzf1w\Downloads\edge-master\edge-master\build\config.gypi', gyp info spawn args '-I', gyp info spawn args 'C:\Users\qzzf1w\AppData\Roaming\npm\node_modules\node-gyp\addon.gypi', gyp info spawn args '-I', gyp info spawn args 'C:\Users\qzzf1w\AppData\Local\node-gyp\Cache\8.2.1\include\node\common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=C:\Users\qzzf1w\AppData\Local\node-gyp\Cache\8.2.1', gyp info spawn args '-Dnode_gyp_dir=C:\Users\qzzf1w\AppData\Roaming\npm\node_modules\node-gyp', gyp info spawn args '-Dnode_lib_file=C:\Users\qzzf1w\AppData\Local\node-gyp\Cache\8.2.1\<(target_arch)\node.lib', gyp info spawn args '-Dmodule_root_dir=C:\Users\qzzf1w\Downloads\edge-master\edge-master', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'C:\Users\qzzf1w\Downloads\edge-master\edge-master\build', gyp info spawn args '-Goutput_dir=.' ] internal/modules/cjs/loader.js:605 throw err; ^

Error: Cannot find module 'nan' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:603:15) at Function.Module._load (internal/modules/cjs/loader.js:529:25) at Module.require (internal/modules/cjs/loader.js:657:17) at require (internal/modules/cjs/helpers.js:22:18) at [eval]:1:1 at Script.runInThisContext (vm.js:122:20) at Object.runInThisContext (vm.js:319:38) at Object. ([eval]-wrapper:6:22) at Module._compile (internal/modules/cjs/loader.js:721:30) at evalScript (internal/bootstrap/node.js:720:27) gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (C:\Users\qzzf1w\AppData\Roaming\npm\node_modules\node-gyp\lib\configure.js:323:16) gyp ERR! stack at emitTwo (events.js:125:13) gyp ERR! stack at ChildProcess.emit (events.js:213:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Windows_NT 10.0.18362 gyp ERR! command "C:\Users\qzzf1w\Downloads\edge-master\edge-master\lib\native\win32\ia32\8.2.1\node.exe" "C:\Users\qzzf1w\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "build" "--msvs_version=2015" "-release" gyp ERR! cwd C:\Users\qzzf1w\Downloads\edge-master\edge-master gyp ERR! node -v v8.2.1 gyp ERR! node-gyp -v v5.0.2 gyp ERR! not ok gyp info it worked if it ends with ok gyp info using node-gyp@5.0.2 gyp info using node@8.2.1 | win32 | x64 gyp info find Python using Python version 2.7.16 found at "C:\Python27\python.exe" gyp info find VS using VS2015 (14.0) found at: gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio 14.0" gyp info find VS run with --verbose for detailed information gyp info spawn C:\Python27\python.exe gyp info spawn args [ 'C:\Users\qzzf1w\AppData\Roaming\npm\node_modules\node-gyp\gyp\gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'msvs', gyp info spawn args '-I', gyp info spawn args 'C:\Users\qzzf1w\Downloads\edge-master\edge-master\build\config.gypi', gyp info spawn args '-I', gyp info spawn args 'C:\Users\qzzf1w\AppData\Roaming\npm\node_modules\node-gyp\addon.gypi', gyp info spawn args '-I', gyp info spawn args 'C:\Users\qzzf1w\AppData\Local\node-gyp\Cache\8.2.1\include\node\common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=C:\Users\qzzf1w\AppData\Local\node-gyp\Cache\8.2.1', gyp info spawn args '-Dnode_gyp_dir=C:\Users\qzzf1w\AppData\Roaming\npm\node_modules\node-gyp', gyp info spawn args '-Dnode_lib_file=C:\Users\qzzf1w\AppData\Local\node-gyp\Cache\8.2.1\<(target_arch)\node.lib', gyp info spawn args '-Dmodule_root_dir=C:\Users\qzzf1w\Downloads\edge-master\edge-master', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'C:\Users\qzzf1w\Downloads\edge-master\edge-master\build', gyp info spawn args '-Goutput_dir=.' ] internal/modules/cjs/loader.js:605 throw err; ^

Error: Cannot find module 'nan' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:603:15) at Function.Module._load (internal/modules/cjs/loader.js:529:25) at Module.require (internal/modules/cjs/loader.js:657:17) at require (internal/modules/cjs/helpers.js:22:18) at [eval]:1:1 at Script.runInThisContext (vm.js:122:20) at Object.runInThisContext (vm.js:319:38) at Object. ([eval]-wrapper:6:22) at Module._compile (internal/modules/cjs/loader.js:721:30) at evalScript (internal/bootstrap/node.js:720:27) gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (C:\Users\qzzf1w\AppData\Roaming\npm\node_modules\node-gyp\lib\configure.js:323:16) gyp ERR! stack at emitTwo (events.js:125:13) gyp ERR! stack at ChildProcess.emit (events.js:213:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Windows_NT 10.0.18362 gyp ERR! command "C:\Users\qzzf1w\Downloads\edge-master\edge-master\lib\native\win32\x64\8.2.1\node.exe" "C:\Users\qzzf1w\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "build" "--msvs_version=2015" "-release" gyp ERR! cwd C:\Users\qzzf1w\Downloads\edge-master\edge-master gyp ERR! node -v v8.2.1 gyp ERR! node-gyp -v v5.0.2 gyp ERR! not ok