Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Guide to Modding Scratch 3.0
- LuckyLucky7
- Scratcher
1000+ posts
Guide to Modding Scratch 3.0
https://gitforwindows.org/Do you mean GIT Bash? Because I already have it. Sorry, when I said Git for Windows, I meant a terminal emulator:
- LuckyLucky7
- Scratcher
1000+ posts
Guide to Modding Scratch 3.0
https://github.com/coreybutler/nvm-windows – and use that to install Node.js.Do you know how to use it? I installed it but then I couldn't figure out what to do with it. That's annoying! I'm not sure, but you could try an unofficial port of NVM, a version manager of Node and NPM, for Windows, here:
- AmazingMech2418
- Scratcher
1000+ posts
Guide to Modding Scratch 3.0
I don't know how to remove Java and I still need it for other things outside of Scratch.Is it possible for you to temporarily remove Java from your path to compile? That's not the ideal solution but I know it worksI used Git Bash. I also tried the normal CMD, but it didn't work either.In the building step for scratch-blocks, it requires a Python library that I think is broken on Windows. On MacOS and Linux, it compiles properly. Is it possible for you to use a Bash terminal, such as the one that comes with GitHub, or using Windows Subsystem for Linux? Either way *should* work, but I'm now using Mac, so I can't confirm. Otherwise, using the online compiler, which is used when Java isn't available, definitely works on Windows. To do that, you can remove Java from your path while you compile Scratch Blocks. If I try to link scratch-blocks, it fails.
- JGames101
- Scratcher
100+ posts
Guide to Modding Scratch 3.0
You can follow I don't know how to remove Java and I still need it for other things outside of Scratch.these instructions to temporarily remove Java from your path. Once the compiler has started running online, you could then re-add java to the path. This doesn't install or uninstall Java at all, but when you remove an item from your path, you lose access to it in a command line. So, by removing Java from your path, Scratch Blocks will compile with the online compiler. Then you can put it back in so that other applications can use it. It's difficult for me to try to find other solutions for this issue, because I'm now using MacOS. However, if I find anything, I'll be sure to tell you and update the post.
Or, if you're using Windows 10 Pro, you can Use Windows Subsystem for Linux to get a proper bash terminal (it's a feature in only the pro versions of Windows 10).
Last edited by JGames101 (Jan. 5, 2019 02:42:26)
- JGames101
- Scratcher
100+ posts
Guide to Modding Scratch 3.0
Just to be clear, you have the path to the Ok, I'm trying to mod Scratch 3 again, using this sticky, but this time I downloaded Node as a zip file. But when I put “npm install”, this happens in the Command Prompt:node-vversion-win-x64 or 32 in your Path environment variable? And the Node and NPM commands still don't work?And Node is in that folder. I even set the location of my environment variables to the Node folder that is in the scratch-gui folder.C:\Users\...\Scratch_Mod\scratch-gui> npm install
'npm' is not recognized as an internal or external command, operable program or batch file.
Last edited by JGames101 (Jan. 5, 2019 02:48:22)
- LuckyLucky7
- Scratcher
1000+ posts
Guide to Modding Scratch 3.0
I installed Node as a zip file(and then unzipped it) because in the real installation program, the progress bar doesn't go up at all. When I unzipped the Node(zip) file, I set the environment variables to the folder where all of the files of Node are, which is:Just to be clear, you have the path to the Ok, I'm trying to mod Scratch 3 again, using this sticky, but this time I downloaded Node as a zip file. But when I put “npm install”, this happens in the Command Prompt:node-vversion-win-x64 or 32 in your Path environment variable? And the Node and NPM commands still don't work?And Node is in that folder. I even set the location of my environment variables to the Node folder that is in the scratch-gui folder.C:\Users\...\Scratch_Mod\scratch-gui> npm install
'npm' is not recognized as an internal or external command, operable program or batch file.
C:\Users\...\Scratch_Mod\scratch-gui\Node
cd scratch-gui
node -v
npm install
Last edited by LuckyLucky7 (Jan. 5, 2019 13:23:07)
- jokebookservice1
- Scratcher
1000+ posts
Guide to Modding Scratch 3.0
Is there a `node.exe` file in your Node folder? If not, could you run `tree` when inside the folder and show us the output?
- computerboy12345
- Scratcher
100+ posts
Guide to Modding Scratch 3.0
kewl
I liek modding. It makes Scartch fuhn
I liek modding. It makes Scartch fuhn
- mrchoosak
- New Scratcher
4 posts
Guide to Modding Scratch 3.0
I installed Node as a zip file(and then unzipped it) because in the real installation program, the progress bar doesn't go up at all. When I unzipped the Node(zip) file, I set the environment variables to the folder where all of the files of Node are, which is:Just to be clear, you have the path to the Ok, I'm trying to mod Scratch 3 again, using this sticky, but this time I downloaded Node as a zip file. But when I put “npm install”, this happens in the Command Prompt:node-vversion-win-x64 or 32 in your Path environment variable? And the Node and NPM commands still don't work?And Node is in that folder. I even set the location of my environment variables to the Node folder that is in the scratch-gui folder.C:\Users\...\Scratch_Mod\scratch-gui> npm install
'npm' is not recognized as an internal or external command, operable program or batch file.Then, in the command prompt, I used:C:\Users\...\Scratch_Mod\scratch-gui\NodeAnd then it said that Node and NPM did not exist.cd scratch-gui
node -v
npm install
As the error from C:\Users\…\Scratch_Mod\scratch-gui\Node -v (check node version)
I think your installation of node was not successfully. OR your Path point to wrong directory(Edit the system environment variables)
I suggest these steps:
1) uninstall all node program from your Windows
1.1) use windows Add remove Programs
1.2) manual delete node unzipped files
2) reinstall node-v10.15.0-x64.msi from https://nodejs.org/en/download
3) try node -v
- mrchoosak
- New Scratcher
4 posts
Guide to Modding Scratch 3.0
If you do clean installation from nodejs website
1) node.exe is located in C:\Program files\nodejs\node.exe
2) npm.cmd is located in both C:\Program files\nodejs\npm.cmd
3) and in C:\Users\%your-login-name%\AppData\Roaming\npm.cmd
1) node.exe is located in C:\Program files\nodejs\node.exe
2) npm.cmd is located in both C:\Program files\nodejs\npm.cmd
3) and in C:\Users\%your-login-name%\AppData\Roaming\npm.cmd
- AmazingMech2418
- Scratcher
1000+ posts
Guide to Modding Scratch 3.0
Could you possibly mod from Scratch 3.0 Desktop?
- LuckyLucky7
- Scratcher
1000+ posts
Guide to Modding Scratch 3.0
If you do clean installation from nodejs website
1) node.exe is located in C:\Program files\nodejs\node.exe
2) npm.cmd is located in both C:\Program files\nodejs\npm.cmd
3) and in C:\Users\%your-login-name%\AppData\Roaming\npm.cmd
I installed Node as a zip file(and then unzipped it) because in the real installation program, the progress bar doesn't go up at all. When I unzipped the Node(zip) file, I set the environment variables to the folder where all of the files of Node are, which is:Just to be clear, you have the path to the Ok, I'm trying to mod Scratch 3 again, using this sticky, but this time I downloaded Node as a zip file. But when I put “npm install”, this happens in the Command Prompt:node-vversion-win-x64 or 32 in your Path environment variable? And the Node and NPM commands still don't work?And Node is in that folder. I even set the location of my environment variables to the Node folder that is in the scratch-gui folder.C:\Users\...\Scratch_Mod\scratch-gui> npm install
'npm' is not recognized as an internal or external command, operable program or batch file.Then, in the command prompt, I used:C:\Users\...\Scratch_Mod\scratch-gui\NodeAnd then it said that Node and NPM did not exist.cd scratch-gui
node -v
npm install
As the error from C:\Users\…\Scratch_Mod\scratch-gui\Node -v (check node version)
I think your installation of node was not successfully. OR your Path point to wrong directory(Edit the system environment variables)
I suggest these steps:
1) uninstall all node program from your Windows
1.1) use windows Add remove Programs
1.2) manual delete node unzipped files
2) reinstall node-v10.15.0-x64.msi from https://nodejs.org/en/download
3) try node -v
Never mind about my problem, I had a ZIP file that did have the node.exe file in it, so then I unzipped it. Now, the “node -v” command works. In the command prompt, now this happens: Is there a `node.exe` file in your Node folder? If not, could you run `tree` when inside the folder and show us the output?
C:\Users\...\Scratch_Mod\scratch-gui> node -v
v10.15.0
- LuckyLucky7
- Scratcher
1000+ posts
Guide to Modding Scratch 3.0
Now I have a new problem…
C:\Users\...\Scratch_Mod\scratch-gui>npm install
npm WARN deprecated react-dom@16.2.0: This version of react-dom/server contains a minor vulnerability. Please update react-dom to 16.2.1 or 16.4.2+. Learn more: https://fb.me/cve-2018-6341
npm WARN deprecated text-encoding@0.7.0: no longer maintained
npm WARN deprecated text-encoding@0.6.4: no longer maintained
npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
npm ERR! code ENOGIT
npm ERR! Error while executing:
npm ERR! undefined ls-remote -h -t ssh://git@github.com/rschamp/gh-pages.git
npm ERR!
npm ERR! undefined
npm ERR! No git binary found in $PATH
npm ERR!
npm ERR! Failed using git.
npm ERR! Please check if you have git installed and in your PATH.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\...\AppData\Roaming\npm-cache\_logs\2019-01-06T18_20_45_352Z-debug.log
C:\Users\...\Scratch_Mod\scratch-gui>npm start
> scratch-gui@0.1.0 start C:\Users\...\Scratch_Mod\scratch-gui
> webpack-dev-server
'webpack-dev-server' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! scratch-gui@0.1.0 start: `webpack-dev-server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the scratch-gui@0.1.0 start 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\...\AppData\Roaming\npm-cache\_logs\2019-01-06T18_20_03_196Z-debug.log
- jokebookservice1
- Scratcher
1000+ posts
Guide to Modding Scratch 3.0
Nice work!
`npm start` won't work until `npm install` finishes correctly. In your case, `git` isn't running. Use “Git Bash” to run those commands so that `git` will work correctly.
`npm start` won't work until `npm install` finishes correctly. In your case, `git` isn't running. Use “Git Bash” to run those commands so that `git` will work correctly.
- LuckyLucky7
- Scratcher
1000+ posts
Guide to Modding Scratch 3.0
There a new problem: Nice work!
`npm start` won't work until `npm install` finishes correctly. In your case, `git` isn't running. Use “Git Bash” to run those commands so that `git` will work correctly.
...@... MINGW64 ~/Scratch_Mod/scratch-gui (develop)
$ npm install
npm WARN deprecated react-dom@16.2.0: This version of react-dom/server contains a minor vulnerability. Please update react-dom to 16.2.1 or 16.4.2+. Learn more: https://fb.me/cve-2018-6341
npm WARN deprecated text-encoding@0.7.0: no longer maintained
npm WARN deprecated text-encoding@0.6.4: no longer maintained
npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
- JGames101
- Scratcher
100+ posts
Guide to Modding Scratch 3.0
You should be able to ignore all of the warnings. Were there any actual errors?There a new problem: Nice work!
`npm start` won't work until `npm install` finishes correctly. In your case, `git` isn't running. Use “Git Bash” to run those commands so that `git` will work correctly....@... MINGW64 ~/Scratch_Mod/scratch-gui (develop)
$ npm install
npm WARN deprecated react-dom@16.2.0: This version of react-dom/server contains a minor vulnerability. Please update react-dom to 16.2.1 or 16.4.2+. Learn more: https://fb.me/cve-2018-6341
npm WARN deprecated text-encoding@0.7.0: no longer maintained
npm WARN deprecated text-encoding@0.6.4: no longer maintained
npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
- LuckyLucky7
- Scratcher
1000+ posts
Guide to Modding Scratch 3.0
When I put in “npm start”:You should be able to ignore all of the warnings. Were there any actual errors?There a new problem: Nice work!
`npm start` won't work until `npm install` finishes correctly. In your case, `git` isn't running. Use “Git Bash” to run those commands so that `git` will work correctly....@... MINGW64 ~/Scratch_Mod/scratch-gui (develop)
$ npm install
npm WARN deprecated react-dom@16.2.0: This version of react-dom/server contains a minor vulnerability. Please update react-dom to 16.2.1 or 16.4.2+. Learn more: https://fb.me/cve-2018-6341
npm WARN deprecated text-encoding@0.7.0: no longer maintained
npm WARN deprecated text-encoding@0.6.4: no longer maintained
npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
...@... MINGW64 ~/Scratch_Mod/scratch-gui (develop)
$ npm start
> scratch-gui@0.1.0 start C:\Users\...\Scratch_Mod\scratch-gui
> webpack-dev-server
'webpack-dev-server' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! scratch-gui@0.1.0 start: `webpack-dev-server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the scratch-gui@0.1.0 start 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\...\AppData\Roaming\npm-cache\_logs\2019-01-06T20_17_04_999Z-debug.log
- Sheep_maker
- Scratcher
1000+ posts
Guide to Modding Scratch 3.0
Perhaps you haven't installed webpack properly. Try running `npm install` again on Git Bash, then try `npm start` again
- LuckyLucky7
- Scratcher
1000+ posts
Guide to Modding Scratch 3.0
When I install NPM, all GIT Bash does is give 4 warnings and then it does nothing else(it doesn't end the command and does do nothing). Perhaps you haven't installed webpack properly. Try running `npm install` again on Git Bash, then try `npm start` again
- Sheep_maker
- Scratcher
1000+ posts
Guide to Modding Scratch 3.0
Scratch GUI has a lot of dependencies, so installing it takes quite some time. NPM outputs warnings as it goes (but doesn't output anything if there's nothing wrong), then it becomes silent as it loads a big dependency.When I install NPM, all GIT Bash does is give 4 warnings and then it does nothing else(it doesn't end the command and does do nothing). Perhaps you haven't installed webpack properly. Try running `npm install` again on Git Bash, then try `npm start` again
Try again and wait a bit longer maybe
- Discussion Forums
- » Advanced Topics
- » Guide to Modding Scratch 3.0