pushkin-consortium / pushkin-cli

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

Errors running `install site` #110

Closed jessestorbeck closed 1 year ago

jessestorbeck commented 1 year ago

This may actually be the same issue as #108, but I have occasionally been getting errors with install site. Sometimes it works, but other times I cannot get it to run successfully after many attempts. They all seem related to yarn, but the error isn't always the same. The two distinct types of errors I got this morning are:

jessestorbeck@jesses-air-4 wordSite % pushkin install site ? Which site template do you want to use? basic ? Which version? (Recommend:v0.2.0) v0.2.0 retrieving from https://api.github.com/repos/pushkin-consortium/pushkin-sitetemplate-basic/releases/112580547 be patient... finished downloading Installing dependencies for api Installing dependencies for front-end Building front-end Writing out front-end config running setEnv() Setting front-end 'environment variable' ... Building front end Problem installing dependencies for front-end Error: Command failed: yarn run build /bin/sh: craco: 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:334:12) {

code: 127, killed: false, signal: null, cmd: 'yarn run build', stdout: 'yarn run v1.22.19\n' + '$ craco build\n' + 'info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.\n', stderr: '/bin/sh: craco: command not found\n' + 'error Command failed with exit code 127.\n' } Building api Writing out front-end config running setEnv() Setting front-end 'environment variable' ... Building front end api is built now setting up transactions db No transaction db for local testing found in docker-compose.dev.yml. Creating. Updating pushkin/docker-compose.dev.yml to include transation db Updating pushkin.yaml Finished updating configs for test transactions db See if a migrations file for transactions exists Migrations file for transactions table doesn't exist yet. Creating.

and

jessestorbeck@jesses-air-4 wordAssocSite % pushkin install site ? Which site template do you want to use? basic ? Which version? (Recommend:v0.2.0) v0.2.0 retrieving from https://api.github.com/repos/pushkin-consortium/pushkin-sitetemplate-basic/releases/112580547 be patient... finished downloading Installing dependencies for api Installing dependencies for front-end Building api Writing out front-end config running setEnv() Setting front-end 'environment variable' ... Building front end Problem installing dependencies for api Error: Command failed: yarn run build Error: Cannot find package '@babel/preset-env' imported from /Users/jessestorbeck/Desktop/wordAssocSite/pushkin/api/babel-virtual-resolve-base.js at new NodeError (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/vendor/import-meta-resolve.js:203:5) at packageResolve (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/vendor/import-meta-resolve.js:873:9) at moduleResolve (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/vendor/import-meta-resolve.js:902:20) at defaultResolve (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/vendor/import-meta-resolve.js:985:15) at resolve (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/vendor/import-meta-resolve.js:999:12) at resolve (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/config/files/import-meta-resolve.js:13:10) at tryImportMetaResolve (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/config/files/plugins.js:137:45) at resolveStandardizedNameForImport (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/config/files/plugins.js:159:19) at resolveStandardizedName (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/config/files/plugins.js:168:12) at loadPreset (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/config/files/plugins.js:56:20) { code: 'ERR_MODULE_NOT_FOUND' } Error: Cannot find package '@babel/preset-env' imported from /Users/jessestorbeck/Desktop/wordAssocSite/pushkin/api/babel-virtual-resolve-base.js at new NodeError (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/vendor/import-meta-resolve.js:203:5) at packageResolve (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/vendor/import-meta-resolve.js:873:9) at moduleResolve (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/vendor/import-meta-resolve.js:902:20) at defaultResolve (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/vendor/import-meta-resolve.js:985:15) at resolve (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/vendor/import-meta-resolve.js:999:12) at resolve (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/config/files/import-meta-resolve.js:13:10) at tryImportMetaResolve (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/config/files/plugins.js:137:45) at resolveStandardizedNameForImport (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/config/files/plugins.js:159:19) at resolveStandardizedName (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/config/files/plugins.js:168:12) at loadPreset (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/config/files/plugins.js:56:20) { code: 'ERR_MODULE_NOT_FOUND' } error Command failed with exit code 1.

at ChildProcess.exithandler (node:child_process:419:12)
at ChildProcess.emit (node:events:511:28)
at maybeClose (node:internal/child_process:1098:16)
at ChildProcess._handle.onexit (node:internal/child_process:304:5) {

code: 1, killed: false, signal: null, cmd: 'yarn run build', stdout: 'yarn run v1.22.19\n' + '$ rm -rf build/* && babel src -d build && cp src/controllers.json build/\n' + 'info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.\n', stderr: "Error: Cannot find package '@babel/preset-env' imported from /Users/jessestorbeck/Desktop/wordAssocSite/pushkin/api/babel-virtual-resolve-base.js\n" + ' at new NodeError (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/vendor/import-meta-resolve.js:203:5)\n' + ' at packageResolve (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/vendor/import-meta-resolve.js:873:9)\n' + ' at moduleResolve (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/vendor/import-meta-resolve.js:902:20)\n' + ' at defaultResolve (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/vendor/import-meta-resolve.js:985:15)\n' + ' at resolve (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/vendor/import-meta-resolve.js:999:12)\n' + ' at resolve (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/config/files/import-meta-resolve.js:13:10)\n' + ' at tryImportMetaResolve (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/config/files/plugins.js:137:45)\n' + ' at resolveStandardizedNameForImport (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/config/files/plugins.js:159:19)\n' + ' at resolveStandardizedName (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/config/files/plugins.js:168:12)\n' + ' at loadPreset (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/config/files/plugins.js:56:20) {\n' + " code: 'ERR_MODULE_NOT_FOUND'\n" + '}\n' + "Error: Cannot find package '@babel/preset-env' imported from /Users/jessestorbeck/Desktop/wordAssocSite/pushkin/api/babel-virtual-resolve-base.js\n" + ' at new NodeError (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/vendor/import-meta-resolve.js:203:5)\n' + ' at packageResolve (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/vendor/import-meta-resolve.js:873:9)\n' + ' at moduleResolve (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/vendor/import-meta-resolve.js:902:20)\n' + ' at defaultResolve (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/vendor/import-meta-resolve.js:985:15)\n' + ' at resolve (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/vendor/import-meta-resolve.js:999:12)\n' + ' at resolve (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/config/files/import-meta-resolve.js:13:10)\n' + ' at tryImportMetaResolve (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/config/files/plugins.js:137:45)\n' + ' at resolveStandardizedNameForImport (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/config/files/plugins.js:159:19)\n' + ' at resolveStandardizedName (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/config/files/plugins.js:168:12)\n' + ' at loadPreset (/usr/local/Cellar/babel/7.22.5/libexec/lib/node_modules/@babel/cli/node_modules/@babel/core/lib/config/files/plugins.js:56:20) {\n' + " code: 'ERR_MODULE_NOT_FOUND'\n" + '}\n' + 'error Command failed with exit code 1.\n' } Building front-end Writing out front-end config running setEnv() Setting front-end 'environment variable' ... Building front end front-end is built now setting up transactions db No transaction db for local testing found in docker-compose.dev.yml. Creating. Updating pushkin/docker-compose.dev.yml to include transation db Updating pushkin.yaml Finished updating configs for test transactions db See if a migrations file for transactions exists Migrations file for transactions table doesn't exist yet. Creating.