face-hh / bussin

An esolang in TypeScript, for heaven's sake.
Apache License 2.0
572 stars 37 forks source link

the thing doesn't even launch bruh are you fr #36

Closed Ponali closed 10 months ago

Ponali commented 11 months ago

got on the nerdy ass program and typed your magic line for bussin and this happened fr fr i aint reading all that


npm run bussin

> @1.2.1 bussin D:\Bussin esolang
> npx ts-node src/main.ts

npx: installed 17 in 3.135s
Cannot find module 'typescript'
Require stack:
- C:\Users\ponal\AppData\Roaming\npm-cache\_npx\21156\node_modules\ts-node\dist\util.js
- C:\Users\ponal\AppData\Roaming\npm-cache\_npx\21156\node_modules\ts-node\dist\bin.js
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @1.2.1 bussin: `npx ts-node src/main.ts`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @1.2.1 bussin script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\ponal\AppData\Roaming\npm-cache\_logs\2023-12-17T14_31_50_696Z-debug.log```

[2023-12-17T14_31_50_696Z-debug.log](https://github.com/face-hh/bussin/files/13696500/2023-12-17T14_31_50_696Z-debug.log)
face-hh commented 11 months ago

Nerdy fr, here's the fix:


npm install -g typescript
npm link typescript
Ponali commented 11 months ago

oh hell nah there's some other nerdy ass shit now wth 💀

npm run bussin [file]

> @1.2.1 bussin D:\Bussin esolang
> npx ts-node src/main.ts "hello world for loop.bsx"

npx: installed 17 in 1.842s
⨯ Unable to compile TypeScript:
src/main.ts:5:27 - error TS2307: Cannot find module 'readline/promises' or its corresponding typedeclarations.

5 import * as readline from 'readline/promises';
                            ~~~~~~~~~~~~~~~~~~~
src/main.ts:6:30 - error TS2307: Cannot find module 'fs' or its corresponding type declarations.

6 import { readFileSync } from "fs";
                               ~~~~
src/main.ts:10:12 - error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.

10     input: process.stdin,
              ~~~~~~~
src/main.ts:11:13 - error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.

11     output: process.stdout
               ~~~~~~~
src/main.ts:14:14 - error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.

14 const file = process.argv[2];
                ~~~~~~~
src/main.ts:28:18 - error TS2550: Property 'endsWith' does not exist on type 'string'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.

28     if (filename.endsWith('.bsx')) input = await transcribe(input);
                    ~~~~~~~~
src/main.ts:36:16 - error TS2705: An async function or method in ES5/ES3 requires the 'Promise' constructor.  Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' inyour '--lib' option.

36 async function repl() {
                  ~~~~
src/main.ts:47:13 - error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.

47             process.exit(1);
               ~~~~~~~

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @1.2.1 bussin: `npx ts-node src/main.ts "hello world for loop.bsx"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @1.2.1 bussin script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\ponal\AppData\Roaming\npm-cache\_logs\2023-12-17T15_14_44_772Z-debug.log

2023-12-17T15_14_44_772Z-debug.log

face-hh commented 11 months ago

Getcho lazy ahh on reading and run npm i --save-dev @types/node

Ponali commented 11 months ago

is that me or this nerdy ass computer lazy asf

npm run bussin "hello world for loop.bsx"

> @1.2.1 bussin D:\Bussin esolang
> npx ts-node src/main.ts "hello world for loop.bsx"

npx: installed 17 in 4.76s
Cannot find module 'readline-sync'
Require stack:
- D:\Bussin esolang\src\runtime\environment.ts
- D:\Bussin esolang\src\main.ts
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @1.2.1 bussin: `npx ts-node src/main.ts "hello world for loop.bsx"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @1.2.1 bussin script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\ponal\AppData\Roaming\npm-cache\_logs\2023-12-17T15_24_24_585Z-debug.log

2023-12-17T15_24_24_585Z-debug.log

face-hh commented 11 months ago

Try runnin npm i, if that ain't work try npm i readline-sync

Ponali commented 11 months ago

both ain't doing any kinda shit, same nerdy ass hieroglyphic ass thing

face-hh commented 11 months ago

There ain't no way, u sure it runnin on the same dir?

Ponali commented 11 months ago

yeah im on the same dir fr fr

face-hh commented 11 months ago

npm install --save readline-sync maybe ion know

Ponali commented 11 months ago

put that then the magic code and theres still no shit happening

face-hh commented 11 months ago

Thas weird AF, send the error maybe smth changed

Ponali commented 11 months ago

alr sure thing

npm install --save readline-sync
npm WARN @1.2.1 No repository field.
npm WARN @1.2.1 No license field.

+ readline-sync@1.4.10
updated 1 package and audited 51 packages in 1.129s

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

found 2 vulnerabilities (1 low, 1 moderate)
  run `npm audit fix` to fix them, or `npm audit` for details

D:\Bussin esolang>npm run bussin "hello world for loop.bsx"

> @1.2.1 bussin D:\Bussin esolang
> npx ts-node src/main.ts "hello world for loop.bsx"

npx: installed 17 in 4.979s
Cannot find module 'readline/promises'
Require stack:
- D:\Bussin esolang\src\main.ts
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @1.2.1 bussin: `npx ts-node src/main.ts "hello world for loop.bsx"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @1.2.1 bussin script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\ponal\AppData\Roaming\npm-cache\_logs\2023-12-17T15_37_17_675Z-debug.log
face-hh commented 11 months ago

npm I readline/promises

Ponali commented 11 months ago
npm i readline/promises
npm ERR! Error while executing:
npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t ssh://git@github.com/readline/promises.git
npm ERR!
npm ERR! Host key verification failed.
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\ponal\AppData\Roaming\npm-cache\_logs\2023-12-17T15_47_26_934Z-debug.log
face-hh commented 11 months ago

Ma bad ig, `npm i readline"

Ponali commented 11 months ago

tried that and it ain't do shit

face-hh commented 11 months ago

Did da error change?

ghost commented 11 months ago

Install rust instead. rustacean-flat-happy

Ponali commented 11 months ago

nah i dont think so ima send this shit tho

D:\Bussin esolang>npm i readline
npm WARN @1.2.1 No repository field.
npm WARN @1.2.1 No license field.

+ readline@1.3.0
added 1 package from 1 contributor and audited 52 packages in 0.688s

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

found 2 vulnerabilities (1 low, 1 moderate)
  run `npm audit fix` to fix them, or `npm audit` for details

D:\Bussin esolang>npm run bussin "hello world for loop.bsx"

> @1.2.1 bussin D:\Bussin esolang
> npx ts-node src/main.ts "hello world for loop.bsx"

npx: installed 17 in 3.415s
Cannot find module 'readline/promises'
Require stack:
- D:\Bussin esolang\src\main.ts
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @1.2.1 bussin: `npx ts-node src/main.ts "hello world for loop.bsx"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @1.2.1 bussin script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\ponal\AppData\Roaming\npm-cache\_logs\2023-12-17T15_50_45_720Z-debug.log

2023-12-17T15_50_45_720Z-debug.log

face-hh commented 11 months ago

Are u rocking the latest version of NodeJS?

face-hh commented 10 months ago

Closing due to inactivity