Skip to content

npm install issue #3201

@gurumoorty-s

Description

@gurumoorty-s

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions