pushkin-consortium / pushkin-cli

A CLI designed to facilitate the setup process of a Pushkin stack
MIT License
0 stars 4 forks source link

Error running pushkin install site #102

Closed jessestorbeck closed 1 year ago

jessestorbeck commented 1 year ago

I've tried beginning again with the quickstart, but I've been experiencing a new problem running pushkin install site. I get the following error:

jessestorbeck@Jesses-MacBook-Air-4 pushkin_quickstart % pushkin install site ? Which site template do you want to use? default ? Which version? (Recommend:v1.3.0) v1.3.0 retrieving from https://api.github.com/repos/pushkin-consortium/pushkin-sitetemplates-default/releases/30226223 be patient... finished downloading Installing dependencies for api Installing dependencies for front-end Building front-end Writing out front-end config Setting front-end 'environment variable' Building front end Problem installing dependencies for front-end Error: Command failed: yarn run build /bin/sh: react-scripts: command not found error Command failed with exit code 127.

at ChildProcess.exithandler (node:child_process:419:12)
at ChildProcess.emit (node:events:511:28)
at maybeClose (node:internal/child_process:1098:16)
at Socket.<anonymous> (node:internal/child_process:456:11)
at Socket.emit (node:events:511:28)
at Pipe.<anonymous> (node:net:335:12) {

code: 127, killed: false, signal: null, cmd: 'yarn run build', stdout: 'yarn run v1.22.19\n' + '$ react-scripts build\n' + 'info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.\n', stderr: '/bin/sh: react-scripts: command not found\n' + 'error Command failed with exit code 127.\n' } Building api Writing out front-end config Setting front-end 'environment variable' Building front end api is built

When I try running it again (the yarn install thing I mentioned yesterday turns out to be irrelevant), it seems to succeed, but maybe not since if I continue with the quickstart, I can add experiments, but I still have problems with pushkin prep, as described in the other issue #195.

jessestorbeck@Jesses-MacBook-Air-4 pushkin_quickstart % pushkin install site ? Which site template do you want to use? default ? Which version? (Recommend:v1.3.0) v1.3.0 Failed to initialize pushkin project: directory /Users/jessestorbeck/Desktop/pushkin_quickstart/pushkin already exists Failed to initialize pushkin project: directory /Users/jessestorbeck/Desktop/pushkin_quickstart/experiments already exists Failed to initialize pushkin project: file /Users/jessestorbeck/Desktop/pushkin_quickstart/pushkin.yaml already exists retrieving from https://api.github.com/repos/pushkin-consortium/pushkin-sitetemplates-default/releases/30226223 be patient... finished downloading Installing dependencies for api Installing dependencies for front-end [Error: EEXIST: file already exists, mkdir 'experiments'] { errno: -17, code: 'EEXIST', syscall: 'mkdir', path: 'experiments' } Building api Writing out front-end config Setting front-end 'environment variable' Building front end api is built Building front-end Writing out front-end config Setting front-end 'environment variable' Building front end front-end is built

jessestorbeck commented 1 year ago

This seems to be fixed now based on pushkin-consortium/pushkin-sitetemplate-basic#1.