Discuss Scratch

Ciyob86
Scratcher
500+ posts

Guide to Modding Scratch 3.0

Removed

Last edited by Ciyob86 (Aug. 13, 2021 19:05:54)

kccuber
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

/mnt/c/Program Files/nodejs/npm: line 3: $'\r': command not found
/mnt/c/Program Files/nodejs/npm: line 5: $'\r': command not found
/mnt/c/Program Files/nodejs/npm: line 6: syntax error near unexpected token `$'in\r''
'mnt/c/Program Files/nodejs/npm: line 6: `case `uname` in
Trying to NPM install in the scratch-blocks folder using WSL gives me this. Any idea? Should I reinstall node? (Node itself works in WSL just that NPM doesn't)


Made using Nord Theme & Inkscape
Ciyob86
Scratcher
500+ posts

Guide to Modding Scratch 3.0

kccuber wrote:

/mnt/c/Program Files/nodejs/npm: line 3: $'\r': command not found
/mnt/c/Program Files/nodejs/npm: line 5: $'\r': command not found
/mnt/c/Program Files/nodejs/npm: line 6: syntax error near unexpected token `$'in\r''
'mnt/c/Program Files/nodejs/npm: line 6: `case `uname` in
Trying to NPM install in the scratch-blocks folder using WSL gives me this. Any idea? Should I reinstall node? (Node itself works in WSL just that NPM doesn't)
https://docs.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-wsl
kccuber_alt
Scratcher
100+ posts

Guide to Modding Scratch 3.0

Ciyob86 wrote:

kccuber wrote:

/mnt/c/Program Files/nodejs/npm: line 3: $'\r': command not found
/mnt/c/Program Files/nodejs/npm: line 5: $'\r': command not found
/mnt/c/Program Files/nodejs/npm: line 6: syntax error near unexpected token `$'in\r''
'mnt/c/Program Files/nodejs/npm: line 6: `case `uname` in
Trying to NPM install in the scratch-blocks folder using WSL gives me this. Any idea? Should I reinstall node? (Node itself works in WSL just that NPM doesn't)
https://docs.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-wsl
tysm, will try this

yes, i am kccuber
kccuber_alt
Scratcher
100+ posts

Guide to Modding Scratch 3.0

Ciyob86 wrote:

Maximouse wrote:

Ciyob86 wrote:

When I try to npm install scratch-blocks it says that I don't have python installed even though I installed it
Are you using Windows? The build script doesn't work there – try using WSL.
I'm already using WSL
(removed image)
reinstall python2 by connecting the universe repository and then doing
sudo apt install python2

yes, i am kccuber
Ciyob86
Scratcher
500+ posts

Guide to Modding Scratch 3.0

kccuber_alt wrote:

Ciyob86 wrote:

Maximouse wrote:

Ciyob86 wrote:

When I try to npm install scratch-blocks it says that I don't have python installed even though I installed it
Are you using Windows? The build script doesn't work there – try using WSL.
I'm already using WSL
(removed image)
reinstall python2 by connecting the universe repository and then doing
sudo apt install python2
Thanks!, I’ll try that when I get off mobile
RedGuy7
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

why install scratchblocks just use tw

see me here where I make nono word and other junk

Please set a status at Ocular by clicking the below image, to make @Jeffalo happy! #OcularStatusesTo1k

left scratch



































































































































































found me!
kccuber_alt
Scratcher
100+ posts

Guide to Modding Scratch 3.0

RedGuy7 wrote:

why install scratchblocks just use tw
bruh
we want to mod scratch not mod turbowarp

and can someone tellme what this is
Required namespace "goog.events.EventWrapper" never defined.
??? at line 57:
goog.requireType('goog.events.EventWrapper');

yes, i am kccuber
Venatus_123
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

kccuber_alt wrote:

and can someone tellme what this is
Required namespace "goog.events.EventWrapper" never defined.
??? at line 57:
goog.requireType('goog.events.EventWrapper');





event block?

bug with pfp?
samq64
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

I can't install scratch-blocks. I have python 2.x installed. I've tried uninstalling python 3.x, restarting my computer and reinstalling python 2.x making sure to enable PATH environment variables.

Last edited by samq64 (Aug. 24, 2021 19:32:39)

Ciyob86
Scratcher
500+ posts

Guide to Modding Scratch 3.0

samq64 wrote:

I can't npm install scratch-blocks. I have python 2.x installed. I've tried uninstalling python 3.x, restarting my computer and reinstalling python 2.x making sure to enable PATH environment variables.
Use WSL

also why is your user named hp

Last edited by Ciyob86 (Aug. 24, 2021 19:40:45)

samq64
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

Ciyob86 wrote:

Use WSL
Is there another way?

Last edited by samq64 (Aug. 24, 2021 19:46:49)

kccuber_alt
Scratcher
100+ posts

Guide to Modding Scratch 3.0

samq64 wrote:

Ciyob86 wrote:

Use WSL
Is there another way?
yeah, change the package.json to be “python build.py && webpack”
(it's on line 16)
because for some reason the newest installed python, doesn't matter what version, takes over the “python” PATH

Last edited by kccuber_alt (Aug. 24, 2021 20:24:51)


yes, i am kccuber
kccuber_alt
Scratcher
100+ posts

Guide to Modding Scratch 3.0

kccuber_alt wrote:

aaaa
please help, i already ran “npm run translate” and after that prepublish the scratchblocks and build the GUI again
please help.

yes, i am kccuber
Venatus_123
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

kccuber_alt wrote:

kccuber_alt wrote:

aaaa
please help, i already ran “npm run translate” and after that prepublish the scratchblocks and build the GUI again
please help.
AAAAAAAAAAAAAAAAAAAA
do you have github or somtinnnnnnnnnnnnnnnojwd;owedwD

bug with pfp?
kccuber
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

Venatus_123 wrote:

AAAAAAAAAAAAAAAAAAAA
do you have github or somtinnnnnnnnnnnnnnnojwd;owedwD
no i dont have a github acc, id like help fixing just this red block


Made using Nord Theme & Inkscape
Ciyob86
Scratcher
500+ posts

Guide to Modding Scratch 3.0

kccuber wrote:

Venatus_123 wrote:

AAAAAAAAAAAAAAAAAAAA
do you have github or somtinnnnnnnnnnnnnnnojwd;owedwD
no i dont have a github acc, id like help fixing just this red block
That's because you didn't define the block in the scratch-gui or scratch-vm

Last edited by Ciyob86 (Aug. 25, 2021 16:00:38)

kccuber_alt
Scratcher
100+ posts

Guide to Modding Scratch 3.0

Ciyob86 wrote:

kccuber wrote:

Venatus_123 wrote:

AAAAAAAAAAAAAAAAAAAA
do you have github or somtinnnnnnnnnnnnnnnojwd;owedwD
no i dont have a github acc, id like help fixing just this red block
That's because you didn't define the block in the scratch-gui or scratch-vm
i did:


yes, i am kccuber
Maximouse
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

Running npm run prepublish again after npm run translate probably helps.


This is Maximouse's signature. Learn more about signatures.
kccuber_alt
Scratcher
100+ posts

Guide to Modding Scratch 3.0

Maximouse wrote:

Running npm run prepublish again after npm run translate probably helps.
aight, lemme try
nope, still didn't work

Last edited by kccuber_alt (Aug. 26, 2021 21:06:56)


yes, i am kccuber

Powered by DjangoBB