nervosnetwork / godwoken-examples

MIT License
5 stars 18 forks source link

Yarn Build Command fails #120

Open crispysandwhich opened 3 years ago

crispysandwhich commented 3 years ago
error /home/de_gentleman/dev/projects/nervos/godwoken-examples/node_modules/xxhash: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: /home/de_gentleman/dev/projects/nervos/godwoken-examples/node_modules/xxhash
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp@5.1.0
gyp info using node@14.17.4 | linux | x64
gyp info find Python using Python version 2.7.18 found at "/usr/bin/python"
gyp info spawn /usr/bin/python
gyp info spawn args [
gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/home/de_gentleman/dev/projects/nervos/godwoken-examples/node_modules/xxhash/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/de_gentleman/.cache/node-gyp/14.17.4/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/de_gentleman/.cache/node-gyp/14.17.4',
gyp info spawn args   '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/home/de_gentleman/.cache/node-gyp/14.17.4/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/home/de_gentleman/dev/projects/nervos/godwoken-examples/node_modules/xxhash',
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   'build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack     at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:13:12)
gyp ERR! stack     at F (/usr/lib/node_modules/npm/node_modules/which/which.js:68:19)
gyp ERR! stack     at E (/usr/lib/node_modules/npm/node_modules/which/which.js:80:29)
gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/which/which.js:89:16
gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/isexe/index.js:42:5
gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
gyp ERR! stack     at FSReqCallback.oncomplete (fs.js:192:21)
gyp ERR! System Linux 5.10.16.3-microsoft-standard-WSL2
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/de_gentleman/dev/projects/nervos/godwoken-examples/node_modules/xxhash

Basically whenever I try to run the yarn build command i get this error message, I dont know what seems to be wrong

node -v = v14.17.4 Yarn -v = 1.19.2

I am on a ubuntu wsl server on windows, Just having a hard time understanding why

jjyr commented 3 years ago

you need to install make.