Discuss Scratch

TerminatorTroy6
Scratcher
35 posts

Guide to Modding Scratch 3.0

JGames101 wrote:

Scratch GUI
From your new folder, run the command
git clone https://github.com/llk/scratch-gui
cd scratch-gui
Install all the dependencies using
npm install
or
yarn install
To open the GUI in a browser, run
npm start
or
yarn start
And open localhost:8601 in your browser.



All goes fine until I run
 npm install 
because it gives me:
up to date, audited 2041 packages in 21s

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

93 vulnerabilities (11 low, 52 moderate, 30 high)

To address issues that do not require attention, run:
npm audit fix

To address all issues possible (including breaking changes), run:
npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

Am I supposed to run it in command prompt or GIT CMD, I have tried both and I've got the same errors. I'm not sure if I should be worried about them. Plus I don't know how to open local host, do I open it in VS Code? Is there a video tutorial on how to do this?

Last edited by TerminatorTroy6 (Nov. 29, 2021 00:47:54)

chinmaym
Scratcher
56 posts

Guide to Modding Scratch 3.0

TerminatorTroy6 wrote:

JGames101 wrote:

Scratch GUI
From your new folder, run the command
git clone https://github.com/llk/scratch-gui
cd scratch-gui
Install all the dependencies using
npm install
or
yarn install
To open the GUI in a browser, run
npm start
or
yarn start
And open localhost:8601 in your browser.



All goes fine until I run
 npm install 
because it gives me:
up to date, audited 2041 packages in 21s

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

93 vulnerabilities (11 low, 52 moderate, 30 high)

To address issues that do not require attention, run:
npm audit fix

To address all issues possible (including breaking changes), run:
npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

Am I supposed to run it in command prompt or GIT CMD, I have tried both and I've got the same errors. I'm not sure if I should be worried about them. Plus I don't know how to open local host, do I open it in VS Code? Is there a video tutorial on how to do this?
use git

Last edited by chinmaym (Nov. 29, 2021 01:00:19)

god286
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

TerminatorTroy6 wrote:

Am I supposed to run it in command prompt or GIT CMD, I have tried both and I've got the same errors. I'm not sure if I should be worried about them. Plus I don't know how to open local host, do I open it in VS Code? Is there a video tutorial on how to do this?
If it was localhost:8601 then you would go to
http://localhost:8601
Don't use HTTPS because localhost 99% of the time doesn't have a signed TLS certificate. I think you should run it in Git Bash since it's better than Command Prompt in my opinion and supports bash commands.




                 _ ____  ___   __   
__ _ ___ __| |___ \( _ ) / /_
/ _` |/ _ \ / _` | __) / _ \| '_ \
| (_| | (_) | (_| |/ __/ (_) | (_) |
\__, |\___/ \__,_|_____\___/ \___/
|___/
^ inspired by @Chiroyce, made with figlet


TerminatorTroy6
Scratcher
35 posts

Guide to Modding Scratch 3.0

god286 wrote:

TerminatorTroy6 wrote:

Am I supposed to run it in command prompt or GIT CMD, I have tried both and I've got the same errors. I'm not sure if I should be worried about them. Plus I don't know how to open local host, do I open it in VS Code? Is there a video tutorial on how to do this?
If it was localhost:8601 then you would go to
http://localhost:8601
Don't use HTTPS because localhost 99% of the time doesn't have a signed TLS certificate. I think you should run it in Git Bash since it's better than Command Prompt in my opinion and supports bash commands.


Thanks, I got it working now to try and start modding it. I also found it easier to just use Git CMD
Also do I just ignore the errors or what do I do about them

Last edited by TerminatorTroy6 (Nov. 29, 2021 02:03:31)

god286
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

I wanted to use pnpm but this thing won't let me.
Installed Yarn, now I got this:

Yarn wrote:

error An unexpected error occurred: “ENOENT: no such file or directory, copyfile ‘/Users/(me)/Library/Caches/Yarn/v6/npm-ms-2.1.2-d09d1f357b443f493382a8eb3ccd183872ae6009-integrity/node_modules/ms/index.js’ -> ‘/Users/(me)/superscratchmod/scratch-gui/node_modules/@babel/core/node_modules/ms/index.js’”.
info If you think this is a bug, please open a bug report with the information provided in “/Users/(me)/superscratchmod/scratch-gui/yarn-error.log”.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Scratch modding is a nightmare for me, not doing it again

Last edited by god286 (Nov. 29, 2021 02:20:23)





                 _ ____  ___   __   
__ _ ___ __| |___ \( _ ) / /_
/ _` |/ _ \ / _` | __) / _ \| '_ \
| (_| | (_) | (_| |/ __/ (_) | (_) |
\__, |\___/ \__,_|_____\___/ \___/
|___/
^ inspired by @Chiroyce, made with figlet


TerminatorTroy6
Scratcher
35 posts

Guide to Modding Scratch 3.0

god286 wrote:

I wanted to use pnpm but this thing won't let me.
Installed Yarn, now I got this:

Yarn wrote:

error An unexpected error occurred: “ENOENT: no such file or directory, copyfile ‘/Users/(me)/Library/Caches/Yarn/v6/npm-ms-2.1.2-d09d1f357b443f493382a8eb3ccd183872ae6009-integrity/node_modules/ms/index.js’ -> ‘/Users/(me)/superscratchmod/scratch-gui/node_modules/@babel/core/node_modules/ms/index.js’”.
info If you think this is a bug, please open a bug report with the information provided in “/Users/(me)/superscratchmod/scratch-gui/yarn-error.log”.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.



Yeah when I installed npm I also got error messages, they looked like this:

up to date, audited 2041 packages in 21s

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

93 vulnerabilities (11 low, 52 moderate, 30 high)

To address issues that do not require attention, run:
npm audit fix

To address all issues possible (including breaking changes), run:
npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

Do I ignore it or what should I do?
god286
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

TerminatorTroy6 wrote:

Do I ignore it or what should I do?
https://scratch.mit.edu/users/ogadaki/#comments-172951762
@ogadaki makes a cool scratch mod

ogadaki wrote:

To be honest I never really worried about it (but maybe I should). Current official scratch-blocks project from MIT (which is the one used at scratch.mit.edu) has currently 36 vulnerabilities (19 high). So if MIT don't “worry” about it while it's used by millions of people, it's OK for you to live with it for your own Scratch mod!
so you don't need to care
how did you even get it to work??




                 _ ____  ___   __   
__ _ ___ __| |___ \( _ ) / /_
/ _` |/ _ \ / _` | __) / _ \| '_ \
| (_| | (_) | (_| |/ __/ (_) | (_) |
\__, |\___/ \__,_|_____\___/ \___/
|___/
^ inspired by @Chiroyce, made with figlet


TerminatorTroy6
Scratcher
35 posts

Guide to Modding Scratch 3.0

god286 wrote:

TerminatorTroy6 wrote:

Do I ignore it or what should I do?
https://scratch.mit.edu/users/ogadaki/#comments-172951762
@ogadaki makes a cool scratch mod

ogadaki wrote:

To be honest I never really worried about it (but maybe I should). Current official scratch-blocks project from MIT (which is the one used at scratch.mit.edu) has currently 36 vulnerabilities (19 high). So if MIT don't “worry” about it while it's used by millions of people, it's OK for you to live with it for your own Scratch mod!
so you don't need to care
how did you even get it to work??

Thanks
TerminatorTroy6
Scratcher
35 posts

Guide to Modding Scratch 3.0

I went to https://github.com/LLK/scratch-desktop
Clicked code then download zip
I unzipped the files and opened the folder in VS Code
How do I run it???

Last edited by TerminatorTroy6 (Nov. 29, 2021 05:13:36)

TerminatorTroy6
Scratcher
35 posts

Guide to Modding Scratch 3.0

How do I add a button in VS Code, I want to make a settings page
TerminatorTroy6
Scratcher
35 posts

Guide to Modding Scratch 3.0

Omg I was trying to edit https://github.com/LLK/scratch-desktop the whole time, tomorrow I am going to try and code a GUI
chinmaym
Scratcher
56 posts

Guide to Modding Scratch 3.0

It gives me an error when I try to open scratch-gui in a browser:
FSReqCallback.readFileAfterClose (node:internal/fs/read_file_context:68:3) {
opensslErrorStack: ,
library: ‘digital envelope routines’,
reason: ‘unsupported’,
code: ‘ERR_OSSL_EVP_UNSUPPORTED’
}
kccuber
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

TerminatorTroy6 wrote:

god286 wrote:

I wanted to use pnpm but this thing won't let me.
Installed Yarn, now I got this:

Yarn wrote:

error An unexpected error occurred: “ENOENT: no such file or directory, copyfile ‘/Users/(me)/Library/Caches/Yarn/v6/npm-ms-2.1.2-d09d1f357b443f493382a8eb3ccd183872ae6009-integrity/node_modules/ms/index.js’ -> ‘/Users/(me)/superscratchmod/scratch-gui/node_modules/@babel/core/node_modules/ms/index.js’”.
info If you think this is a bug, please open a bug report with the information provided in “/Users/(me)/superscratchmod/scratch-gui/yarn-error.log”.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.



Yeah when I installed npm I also got error messages, they looked like this:

up to date, audited 2041 packages in 21s

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

93 vulnerabilities (11 low, 52 moderate, 30 high)

To address issues that do not require attention, run:
npm audit fix

To address all issues possible (including breaking changes), run:
npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

Do I ignore it or what should I do?
1. those aren't error messages, you can ignore them.
2. node.js comes with npm preinstalled, i think you'll now need to completely remove node.js and reinstall it because npm install npm on windows totally bricks npm


Made using Nord Theme & Inkscape
god286
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

chinmaym wrote:

It gives me an error when I try to open scratch-gui in a browser:
FSReqCallback.readFileAfterClose (node:internal/fs/read_file_context:68:3) {
opensslErrorStack: ,
library: ‘digital envelope routines’,
reason: ‘unsupported’,
code: ‘ERR_OSSL_EVP_UNSUPPORTED’
}
You should probably use HTTP instead of HTTPS when developing. This sounds like the problem.




                 _ ____  ___   __   
__ _ ___ __| |___ \( _ ) / /_
/ _` |/ _ \ / _` | __) / _ \| '_ \
| (_| | (_) | (_| |/ __/ (_) | (_) |
\__, |\___/ \__,_|_____\___/ \___/
|___/
^ inspired by @Chiroyce, made with figlet


TerminatorTroy6
Scratcher
35 posts

Guide to Modding Scratch 3.0

How do I run it in my browser and run it as an app. I have changed what I wanted to change in Scratch GUI Develop but I don't know how to get it to run
god286
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

TerminatorTroy6 wrote:

How do I run it in my browser and run it as an app. I have changed what I wanted to change in Scratch GUI Develop but I don't know how to get it to run
npm run start
or if you use yarn
yarn start

pnpm? hello?

Last edited by god286 (Nov. 30, 2021 00:21:22)





                 _ ____  ___   __   
__ _ ___ __| |___ \( _ ) / /_
/ _` |/ _ \ / _` | __) / _ \| '_ \
| (_| | (_) | (_| |/ __/ (_) | (_) |
\__, |\___/ \__,_|_____\___/ \___/
|___/
^ inspired by @Chiroyce, made with figlet


TerminatorTroy6
Scratcher
35 posts

Guide to Modding Scratch 3.0

god286 wrote:

TerminatorTroy6 wrote:

How do I run it in my browser and run it as an app. I have changed what I wanted to change in Scratch GUI Develop but I don't know how to get it to run
npm run start
or if you use yarn
yarn start

pnpm? hello?


C:\Users\termi\Downloads\Scratch Moding\Changed\scratch-gui-develop>npm run start
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\termi\Downloads\Scratch Moding\Changed\scratch-gui-develop/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open ‘C:\Users\termi\Downloads\Scratch Moding\Changed\scratch-gui-develop\package.json’
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\termi\AppData\Local\npm-cache\_logs\2021-11-30T00_25_49_081Z-debug.log
chinmaym
Scratcher
56 posts

Guide to Modding Scratch 3.0

god286 wrote:

chinmaym wrote:

It gives me an error when I try to open scratch-gui in a browser:
FSReqCallback.readFileAfterClose (node:internal/fs/read_file_context:68:3) {
opensslErrorStack: ,
library: ‘digital envelope routines’,
reason: ‘unsupported’,
code: ‘ERR_OSSL_EVP_UNSUPPORTED’
}
You should probably use HTTP instead of HTTPS when developing. This sounds like the problem.
How???
TerminatorTroy6
Scratcher
35 posts

Guide to Modding Scratch 3.0

TerminatorTroy6 wrote:

god286 wrote:

TerminatorTroy6 wrote:

How do I run it in my browser and run it as an app. I have changed what I wanted to change in Scratch GUI Develop but I don't know how to get it to run
npm run start
or if you use yarn
yarn start

pnpm? hello?

C:\Users\termi\Downloads\Scratch Moding\Changed\scratch-gui-develop>npm run start
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\termi\Downloads\Scratch Moding\Changed\scratch-gui-develop/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\termi\Downloads\Scratch Moding\Changed\scratch-gui-develop\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\termi\AppData\Local\npm-cache\_logs\2021-11-30T00_25_49_081Z-debug.log[/quote]




Do I use npm install???
god286
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

TerminatorTroy6 wrote:

Do I use npm install???
Of course you need to run npm install… that's how modding works
I think you must have done it already if you're all the way up to here - I got a similar issue with you




                 _ ____  ___   __   
__ _ ___ __| |___ \( _ ) / /_
/ _` |/ _ \ / _` | __) / _ \| '_ \
| (_| | (_) | (_| |/ __/ (_) | (_) |
\__, |\___/ \__,_|_____\___/ \___/
|___/
^ inspired by @Chiroyce, made with figlet


Powered by DjangoBB

Standard | Mobile