Coder Social home page Coder Social logo

Comments (8)

raucao avatar raucao commented on June 18, 2024

You need to install the dependencies first:

yarn run deps

from sockethub.

scenaristeur avatar scenaristeur commented on June 18, 2024

can't even install running

 git clone [email protected]:sockethub/sockethub.git
cd sockethub/
 npm install -g lerna
 yarn run deps
lerna bootstrap

give me


 lerna bootstrap
info cli using local version of lerna
lerna notice cli v4.0.0
lerna info versioning independent
lerna info Bootstrapping 10 packages
lerna info Installing external dependencies
lerna ERR! yarn install --mutex network:42424 --non-interactive exited 2 in '@sockethub/platform-xmpp'
lerna ERR! yarn install --mutex network:42424 --non-interactive stderr:
Usage: yarn [options]

yarn: error: no such option: --mutex
lerna ERR! yarn install --mutex network:42424 --non-interactive exited 2 in '@sockethub/platform-xmpp'
lerna WARN complete Waiting for 7 child processes to exit. CTRL-C to exit immediately.

from sockethub.

silverbucket avatar silverbucket commented on June 18, 2024

A little context on why yarn run deps is needed, it's a workaround that I would love to remove if lerna fixes the issue, explained here. lerna/lerna#3070

As for running sockethub, @scenaristeur why are you running lerna bootstrap after you run yarn run deps which includes the bootstrap?

Anyway, for me, with a fresh checkout, this works:

git clone [email protected]:sockethub/sockethub.git
cd sockethub/
yarn run deps
yarn run dev

from sockethub.

scenaristeur avatar scenaristeur commented on June 18, 2024
smag@smag-IdeaPad:~/dev/newsockethub$ git clone [email protected]:sockethub/sockethub.git
cd sockethub/
yarn run deps
yarn run dev
Clonage dans 'sockethub'...
remote: Enumerating objects: 19198, done.
remote: Counting objects: 100% (3234/3234), done.
remote: Compressing objects: 100% (893/893), done.
remote: Total 19198 (delta 2498), reused 2995 (delta 2315), pack-reused 15964
Réception d'objets: 100% (19198/19198), 9.98 Mio | 6.36 Mio/s, fait.
Résolution des deltas: 100% (11666/11666), fait.
00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'run'
00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'run'
smag@smag-IdeaPad:~/dev/newsockethub/sockethub$ yarn run dev
00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'run'
smag@smag-IdeaPad:~/dev/newsockethub/sockethub$ 
smag@smag-IdeaPad:~/dev/newsockethub/sockethub$ yarn run deps
00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'run'
smag@smag-IdeaPad:~/dev/newsockethub/sockethub$ 

from sockethub.

silverbucket avatar silverbucket commented on June 18, 2024

Hi David, you have to run each command separately. It looks like here the commands were all pasted in the terminal at once. Or you can chain them with
git clone [email protected]:sockethub/sockethub.git && cd sockethub/ && yarn run deps && yarn run dev

from sockethub.

scenaristeur avatar scenaristeur commented on June 18, 2024

smag@smag-IdeaPad:~/dev/newsockethub/sockethub$ yarn --version
0.32+git
smag@smag-IdeaPad:~/dev/newsockethub/sockethub$ npm -v
8.11.0
smag@smag-IdeaPad:~/dev/newsockethub/sockethub$ node -v
v16.16.0

smag@smag-IdeaPad:~/dev/newsockethub$ ll
total 8
drwxrwxr-x  2 smag smag 4096 août  14 21:38 ./
drwxrwxr-x 28 smag smag 4096 août  14 21:27 ../

smag@smag-IdeaPad:~/dev/newsockethub$ git clone [email protected]:sockethub/sockethub.git
Clonage dans 'sockethub'...
remote: Enumerating objects: 19198, done.
remote: Counting objects: 100% (3228/3228), done.
remote: Compressing objects: 100% (896/896), done.
remote: Total 19198 (delta 2485), reused 2991 (delta 2306), pack-reused 15970
Réception d'objets: 100% (19198/19198), 9.93 Mio | 8.64 Mio/s, fait.
Résolution des deltas: 100% (11657/11657), fait.

smag@smag-IdeaPad:~/dev/newsockethub$ cd sockethub/

smag@smag-IdeaPad:~/dev/newsockethub/sockethub$ yarn run deps
00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'run'

smag@smag-IdeaPad:~/dev/newsockethub/sockethub$ npm run deps

> deps
> yarn install && lerna bootstrap

00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'install'

smag@smag-IdeaPad:~/dev/newsockethub/sockethub$ npm install

added 1147 packages, and audited 1148 packages in 1m

109 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
smag@smag-IdeaPad:~/dev/newsockethub/sockethub$ yarn run deps
00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'run'
smag@smag-IdeaPad:~/dev/newsockethub/sockethub$ 


from sockethub.

scenaristeur avatar scenaristeur commented on June 18, 2024

Sorry, my bad . https://stackoverflow.com/questions/46013544/yarn-install-command-error-no-such-file-or-directory-install
Bad version of yarn

smag@smag-IdeaPad:~/dev/newsockethub/sockethub$ sudo apt remove cmdtest
[sudo] Mot de passe de smag :            
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
  python3-cliapp python3-ttystatus
Veuillez utiliser « sudo apt autoremove » pour les supprimer.
Les paquets suivants seront ENLEVÉS :
  cmdtest
0 mis à jour, 0 nouvellement installés, 1 à enlever et 0 non mis à jour.
Après cette opération, 98,3 ko d'espace disque seront libérés.
Souhaitez-vous continuer ? [O/n] O
(Lecture de la base de données... 380905 fichiers et répertoires déjà installés.)
Suppression de cmdtest (0.32.14.gcdfe14e-2) ...
Traitement des actions différées (« triggers ») pour man-db (2.10.2-1) ...
smag@smag-IdeaPad:~/dev/newsockethub/sockethub$ sudo apt remove yarn
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
Note : sélection de « cmdtest » au lieu de « yarn »
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
  python3-cliapp python3-ttystatus
Veuillez utiliser « sudo apt autoremove » pour les supprimer.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
smag@smag-IdeaPad:~/dev/newsockethub/sockethub$ sudo npm install -g yarn
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

added 1 package, and audited 2 packages in 964ms

found 0 vulnerabilities
smag@smag-IdeaPad:~/dev/newsockethub/sockethub$ yarn --version
1.22.19
smag@smag-IdeaPad:~/dev/newsockethub/sockethub$ yarn run deps
yarn run v1.22.19
$ yarn install && lerna bootstrap
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
[2/4] Fetching packages...

from sockethub.

silverbucket avatar silverbucket commented on June 18, 2024

@scenaristeur Glad it's working, BTW I created a PR fixing the issue with yarn deps so it's no longer needed. Once it's merged you'll just need to do the standard yarn install before running. #764

from sockethub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.