Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install issue #3201

Open
gurumoorty-s opened this issue Mar 21, 2024 · 2 comments
Open

npm install issue #3201

gurumoorty-s opened this issue Mar 21, 2024 · 2 comments

Comments

@gurumoorty-s
Copy link

Expected Behavior

Should give no errors.

Actual Behavior

[email protected] prepublish
python build.py && webpack

D:\Scratch Mod\scratch-blocks\build.py:106: SyntaxWarning: invalid escape sequence '/'
f.write(self.format_js("""
D:\Scratch Mod\scratch-blocks\build.py:440: SyntaxWarning: invalid escape sequence '\w'
LICENSE = re.compile("""/\*
Could not find "java" in your PATH.
Using remote compiler: closure-compiler.appspot.com ...

Error: Closure not found. Read this:
developers.google.com/blockly/guides/modify/web/closure
npm ERR! code 1
npm ERR! path D:\Scratch Mod\scratch-blocks
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c python build.py && webpack

npm ERR! A complete log of this run can be found in: C:\Users\ABHINAND\AppData\Local\npm-cache_logs\2024-03-21T13_44_32_165Z-debug-0.log

Steps to Reproduce

Explain what someone needs to do in order to see what's described in Actual behavior above

Steps to reproduce the behavior:

  1. Make a folder and in that folder, open cmd.
  2. Do git clone https://github.com/scratchfoundation/scratch-blocks.git
  3. Follow the step as mentioned in "npm install" build error #2364
  4. Do npm install

System Details

Windows 10, Java 8, JDK 22, Python 3.12

So I am new to development with scratch. I wanted to add block based programming functionality to Scratch 3.0 wherein we can Program in Python from basic blocks. I also want to have ESP32 connectivity with that. After some research, I cloned scratch-gui and scratch-vm but then while cloning and getting scratch-blocks ready, I am facing these errors. Also I am a beginner to this, so it would be nice if someone would be able to guide me through the process of modding scratch. Another thing is that Closure is officially shutting down soon so how to avoid errors regarding that. If someone can contribute, please do so.

Thanks.

@CST1229
Copy link

CST1229 commented Mar 21, 2024

Read the error message. You have to install Java (yes, not JavaScript here. Compiling scratch-blocks requires installing Java).

@gurumoorty-s
Copy link
Author

Read the error message. You have to install Java (yes, not JavaScript here. Compiling scratch-blocks requires installing Java).

Thanks for the reply. But if you see the system specifications, I have already i stalled Java 8(Also added to PATH) and also installed JDK 22(Added to PATH as well). But the error still persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants