Closed Ponali closed 10 months ago
Nerdy fr, here's the fix:
npm install -g typescript
npm link typescript
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
Getcho lazy ahh on reading and run
npm i --save-dev @types/node
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
Try runnin npm i
, if that ain't work try npm i readline-sync
both ain't doing any kinda shit, same nerdy ass hieroglyphic ass thing
There ain't no way, u sure it runnin on the same dir?
yeah im on the same dir fr fr
npm install --save readline-sync
maybe ion know
put that then the magic code and theres still no shit happening
Thas weird AF, send the error maybe smth changed
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
npm I readline/promises
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
Ma bad ig, `npm i readline"
tried that and it ain't do shit
Did da error change?
Install rust instead.
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
Are u rocking the latest version of NodeJS?
Closing due to inactivity
got on the nerdy ass program and typed your magic line for bussin and this happened fr fr i aint reading all that