dat-ecosystem-archive / docs

Documentation resources for dat and the surrounding ecosystem [ DEPRECATED - see https://github.com/hypercore-protocol/new-website/tree/master/guides for similar functionality. More info on active projects and modules at https://dat-ecosystem.org/ ]
https://dat-ecosystem-archive.github.io/docs/
530 stars 96 forks source link

Build error with `npm install` - Cookbook Simple chat #173

Closed Saul-BT closed 4 years ago

Saul-BT commented 4 years ago

When I try to supply all dependencies from kappa-workout package.json it throws some errors:

make: *** [utp.target.mk:117: Release/obj.target/utp/src/socket_wrap.o] Error 1
make: se sale del directorio '/home/tarod/Documentos/prueba-dat/kappa-workshop/node_modules/utp-native/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 5.5.13-arch1-1
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/tarod/Documentos/prueba-dat/kappa-workshop/node_modules/utp-native
gyp ERR! node -v v13.12.0
gyp ERR! node-gyp -v v6.1.0
gyp ERR! not ok

Node version: v13.12.0 NPM version: 6.14.4

okdistribute commented 4 years ago

Ah @Saul-BT, instead of discovery-swarm, try using hyperswarm -- the docs might need updating.. Or otherwise, try downgrading to node 8.

okdistribute commented 4 years ago

cc @noffle this gist could be updated to be more accurate, it is old https://github.com/kappa-db/workshop/blob/master/problems/02.md

@Saul-BT if you're able to figure it out with hyperswarm, please feel free to open a PR on the above link!

Saul-BT commented 4 years ago

Yep, I noticed 😊

okdistribute commented 4 years ago

OK Should be fixed now https://github.com/kappa-db/workshop/commit/dae4c8e1ec15d93b78bac26744fb06054dfa7ff8, please let us know if that isn't correct.

Saul-BT commented 4 years ago

OK Should be fixed now kappa-db/workshop@dae4c8e, please let us know if that isn't correct.

It's correct, but I have found several problems following the workshop. When I finish the workshop, I will send a PR with the fixes :).

Thanks @okdistribute

okdistribute commented 4 years ago

thanks @Saul-BT ! that's helpful, we wrote it over a year ago and the ecosystem has been moving!

Saul-BT commented 4 years ago

OK Should be fixed now kappa-db/workshop@dae4c8e, please let us know if that isn't correct.

It's correct, but I have found several problems following the workshop. When I finish the workshop, I will send a PR with the fixes :).

Thanks @okdistribute

Here it is: kappa-db/workshop#22