reece_hart
11/04/2022, 2:24 AMsnafu$ npx create-supertokens-app@latest
Need to install the following packages:
create-supertokens-app@latest
Ok to proceed? (y)
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'ansi-escapes@6.0.0',
npm WARN EBADENGINE required: { node: '>=14.16' },
npm WARN EBADENGINE current: { node: 'v12.22.9', npm: '8.5.1' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'figures@5.0.0',
npm WARN EBADENGINE required: { node: '>=14' },
npm WARN EBADENGINE current: { node: 'v12.22.9', npm: '8.5.1' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'type-fest@3.1.0',
npm WARN EBADENGINE required: { node: '>=14.16' },
npm WARN EBADENGINE current: { node: 'v12.22.9', npm: '8.5.1' }
npm WARN EBADENGINE }
file:///home/reece/.npm/_npx/bf3a85bce9cfe559/node_modules/create-supertokens-app/lib/build/index.js:160
frontend: answers?.frontend ?? "",
^
SyntaxError: Unexpected token '.'
at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
at async link (internal/modules/esm/module_job.js:42:21)
nkshah2
11/04/2022, 2:25 AMreece_hart
11/04/2022, 2:26 AMnkshah2
11/04/2022, 2:27 AMreece_hart
11/04/2022, 2:38 AM? What is your app called? my-app
? Choose a frontend framework (Visit our documentation for integration with other frameworks): Vue.js
? Choose a backend framework (Visit our documentation for integration with other frameworks): Python (FastAPI)
? What type of authentication do you want to use? Social Login + Email Password
Then,
snafu$ npm run start
> my-app@0.0.1 start
> npm-run-all --parallel start:frontend start:backend
> my-app@0.0.1 start:backend
> cd backend && pip install virtualenv && virtualenv venv && source venv/bin/activate && pip install -r requirements.txt && python app.py
> my-app@0.0.1 start:frontend
> cd frontend && npm run dev
> vue-prebuilt@0.0.0 dev
> vite
Defaulting to user installation because normal site-packages is not writeable
VITE v3.2.2 ready in 352 ms
➜ Local: http://localhost:3000/
⋮.
Installing collected packages: distlib, filelock, virtualenv
Successfully installed distlib-0.3.6 filelock-3.8.0 virtualenv-20.16.6
created virtual environment CPython3.10.6.final.0-64 in 187ms
creator CPython3Posix(dest=/home/reece/my-app/backend/venv, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/reece/.local/share/virtualenv)
added seed packages: pip==22.3, setuptools==65.5.0, wheel==0.37.1
activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
sh: 1: source: not found
ERROR: "start:backend" exited with 127.
reece_hart
11/04/2022, 2:38 AM➜ Local: http://localhost:3000/
created virtual environment CPython3.10.6.final.0-64 in 139ms
creator CPython3Posix(dest=/home/reece/my-app/backend/venv, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/reece/.local/share/virtualenv)
added seed packages: pip==22.3, setuptools==65.5.0, wheel==0.37.1
activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
sh: 1: source: not found
ERROR: "start:backend" exited with 127.
/home/reece/my-app/frontend/node_modules/esbuild/lib/main.js:1113
return callback(new Error(error), null);
^
Error: The service was stopped: write EPIPE
at /home/reece/my-app/frontend/node_modules/esbuild/lib/main.js:1113:25
at responseCallbacks.<computed> (/home/reece/my-app/frontend/node_modules/esbuild/lib/main.js:671:9)
at afterClose (/home/reece/my-app/frontend/node_modules/esbuild/lib/main.js:661:28)
at /home/reece/my-app/frontend/node_modules/esbuild/lib/main.js:2050:11
at onwriteError (node:internal/streams/writable:418:3)
at process.processTicksAndRejections (node:internal/process/task_queues:84:21)
Node.js v19.0.0
nkshah2
11/04/2022, 2:39 AMreece_hart
11/04/2022, 2:41 AMnkshah2
11/04/2022, 2:42 AMreece_hart
11/04/2022, 2:42 AMreece_hart
11/04/2022, 2:42 AMnkshah2
11/04/2022, 2:43 AMnkshah2
11/04/2022, 2:46 AMreece_hart
11/04/2022, 2:49 AM.
. Whoever is issuing the source should either do it in bash or perhaps use .
.nkshah2
11/04/2022, 2:49 AMreece_hart
11/04/2022, 3:08 AMreece_hart
11/04/2022, 3:09 AM