Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Guide to Modding Scratch 3.0
- AmazingMech2418
-
1000+ posts
Guide to Modding Scratch 3.0
npm is a nodejs package installer. It needs to be downloaded.Please Answer Ugh, another error?
I followed instructions of how to install Node and npm with No Administrator's permission and now this happens:C:\Users\*censored due to name reveal*\scratch-gui> npm install
'npm' is not recognized as an internal command or external command, operable program or batch file.
- MrMeowington
-
100+ posts
Guide to Modding Scratch 3.0
Holy cow, the cloning is taking a while!
Well I mean, it could be worse.
It could be a Raspbian update!
Well I mean, it could be worse.
It could be a Raspbian update!
- MrMeowington
-
100+ posts
Guide to Modding Scratch 3.0
If you're using Linux, you might want to run the install command with root privileges…
sudo npm install
Last edited by MrMeowington (Aug. 24, 2018 22:55:32)
- AmazingMech2418
-
1000+ posts
Guide to Modding Scratch 3.0
Sudo doesn't work in Batch. Bash can use sudo, though. You might want to run the install command with root privileges…sudo npm install
- MrMeowington
-
100+ posts
Guide to Modding Scratch 3.0
Yeah, I just realized that I wasn't very clear on that and was just coming back to fix it.Sudo doesn't work in Batch. Bash can use sudo, though. You might want to run the install command with root privileges…sudo npm install
Only Linux users can enter ‘sudo’ at the terminal.
- jokebookservice1
-
1000+ posts
Guide to Modding Scratch 3.0
Actually, Mac users (and I think Unix too) can also use sudo at their terminalsYeah, I just realized that I wasn't very clear on that and was just coming back to fix it.Sudo doesn't work in Batch. Bash can use sudo, though. You might want to run the install command with root privileges…sudo npm install
Only Linux users can enter ‘sudo’ at the terminal.

- AmazingMech2418
-
1000+ posts
Guide to Modding Scratch 3.0
Yes, but not Windows.Actually, Mac users (and I think Unix too) can also use sudo at their terminalsYeah, I just realized that I wasn't very clear on that and was just coming back to fix it.Sudo doesn't work in Batch. Bash can use sudo, though. You might want to run the install command with root privileges…sudo npm install
Only Linux users can enter ‘sudo’ at the terminal.
- ateesdalejr
-
100+ posts
Guide to Modding Scratch 3.0
please use su instead.Actually, Mac users (and I think Unix too) can also use sudo at their terminalsYeah, I just realized that I wasn't very clear on that and was just coming back to fix it.Sudo doesn't work in Batch. Bash can use sudo, though. You might want to run the install command with root privileges…sudo npm install
Only Linux users can enter ‘sudo’ at the terminal.
- s_federici
-
500+ posts
Guide to Modding Scratch 3.0
Hi JGames101 and everyone, I tried
git clone git@github.com:LLK/scratch-gui.gitbut I get the following error message:
git@github.com: Permission denied (publickey).Am I doing something wrong?
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
- s_federici
-
500+ posts
Guide to Modding Scratch 3.0
Trying the GUI version of Git I get a similar error message: Hi JGames101 and everyone, I triedgit clone git@github.com:LLK/scratch-gui.gitbut I get the following error message:git@github.com: Permission denied (publickey).Am I doing something wrong?
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Warning: Permanently added the RSA host key for IP address ‘192.30.253.113’ to the list of known hosts.
git clone git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
- s_federici
-
500+ posts
Guide to Modding Scratch 3.0
Hi JGames101 and everyone, I triedgit clone git@github.com:LLK/scratch-gui.gitbut I get the following error message:git@github.com: Permission denied (publickey).Am I doing something wrong?
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I solved the clone problem by using the “Clone existing repository” in the GUI version of github and using
https://github.com/LLK/scratch-gui.git
as Source Location, as suggested at https://github.com/LLK/scratch-gui. Then, after installing and starting it, I got Scratch 3 correctly working at localhost:8601. Thanks JGames101!
- s_federici
-
500+ posts
Guide to Modding Scratch 3.0
I've modified Scratch blocks and made the blocks less fat. I also added back the square string inputs and flipped the colours of the events and control blocks.
I like a lot the thinner blocks! How did you get that? I just downloaded the source code and made it run in node.js, so I really don't know where to start

- Sheep_maker
-
1000+ posts
Guide to Modding Scratch 3.0
I don't recall exactly what I did, but you can see my changes here. Most of my changes were made in core/block_render_svg_vertical.jsI've modified Scratch blocks and made the blocks less fat. I also added back the square string inputs and flipped the colours of the events and control blocks.
I like a lot the thinner blocks! How did you get that? I just downloaded the source code and made it run in node.js, so I really don't know where to start
I believe I had some trouble building it to gh-pages because I didn't have Python, so I just manually moved my files over to the other branch and that worked.
- s_federici
-
500+ posts
Guide to Modding Scratch 3.0
When I run
npm linkI get an error complaining that I have no Python installed. Why do I need Python in order to change Scratch 3 source code? Isn't it just Javascript?
- s_federici
-
500+ posts
Guide to Modding Scratch 3.0
After having installed python (version 2.x; version 3.x apparently DOESN'T work with the Scratch 3 source code) I get the following error when I run “npm link”: When I runnpm linkI get an error complaining that I have no Python installed. Why do I need Python in order to change Scratch 3 source code? Isn't it just Javascript?
> python build.py && webpack
Traceback (most recent call last):
File “build.py”, line 569, in <module>
test_proc = subprocess.Popen(test_args, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
File “C:\Python27\lib\subprocess.py”, line 394, in __init__
errread, errwrite)
File “C:\Python27\lib\subprocess.py”, line 644, in _execute_child
startupinfo)
WindowsError: Impossibile trovare il file specificato
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! scratch-blocks@0.1.0-prerelease.1540417094 prepublish: `python build.py && webpack`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the scratch-blocks@0.1.0-prerelease.1540417094 prepublish 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\s_fed\AppData\Roaming\npm-cache\_logs\2018-11-01T10_45_46_092Z-debug.log
- s_federici
-
500+ posts
Guide to Modding Scratch 3.0
Is there anyone following this thread that knows how to work on Scratch 3 source code? It seems that JGames101 is not monitoring it 

- LuckyLucky7
-
1000+ posts
Guide to Modding Scratch 3.0
I used Is there anyone following this thread that knows how to work on Scratch 3 source code? It seems that JGames101 is not monitoring it Glitch, but Scratch 3 kept having updates so the code got messed up for me. The only solution now is to wait until Scratch 3 actually releases and then use Glitch to edit the Scratch 3 source code.
- JGames101
-
100+ posts
Guide to Modding Scratch 3.0
I'm in the process of rewriting the post now. I've been away from Scratch for a while but I am now much more familiar with npm than I was at the time I originally wrote it.
- JGames101
-
100+ posts
Guide to Modding Scratch 3.0
The new instructions addresses this issue with a workaround. I'm looking into a proper fix. Is it possible for you to run the code in an environment without Java installed? If so, try running the command without java, in which case it uses the web version to compile, which should work successfully. I'm looking into how to make it work without this workaround.After having installed python (version 2.x; version 3.x apparently DOESN'T work with the Scratch 3 source code) I get the following error when I run “npm link”: When I runnpm linkI get an error complaining that I have no Python installed. Why do I need Python in order to change Scratch 3 source code? Isn't it just Javascript?> python build.py && webpack
Traceback (most recent call last):
File “build.py”, line 569, in <module>
test_proc = subprocess.Popen(test_args, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
File “C:\Python27\lib\subprocess.py”, line 394, in __init__
errread, errwrite)
File “C:\Python27\lib\subprocess.py”, line 644, in _execute_child
startupinfo)
WindowsError: Impossibile trovare il file specificato
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! scratch-blocks@0.1.0-prerelease.1540417094 prepublish: `python build.py && webpack`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the scratch-blocks@0.1.0-prerelease.1540417094 prepublish 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\s_fed\AppData\Roaming\npm-cache\_logs\2018-11-01T10_45_46_092Z-debug.log
- Discussion Forums
- » Advanced Topics
-
» Guide to Modding Scratch 3.0