Not able to build the scratch-blocks
Closed this issue · 7 comments
Expected Behavior
It should build and install using npm commands
Actual Behavior
scratch-blocks>npm i
scratch-blocks@0.1.0 prepublish
python build.py && webpack
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 C:\Users\hacktronics\Desktop\codeblocks\Scratch\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:
npm ERR! C:\Users\hacktronics\AppData\Local\npm-cache_logs\2022-02-06T10_58_46_088Z-debug-0.log
Steps to Reproduce
npm i
npm build
Operating System and Browser
Windows 10 x64
node --version
v16.13.2
npm --version
8.3.1
I have java and python 2 installed, and python command is set as python2 only. not the python or java issue.
I don't think there is any proxy, maybe firewall, but not received any notification.
the problem is there is no calcdeps.py in the latest version of node_modules\google-closure-library
Also you need to globally install: npm i -g webpack@4.46.0, as it will call webpack which won't be available otherwise
Looks like on windows you have to use WSL, otherwise you might receive error: "The command line is too long"
Also you have to set:
export NODE_OPTIONS=--openssl-legacy-provider
otherwise on the latest nodejs you will hit issue:
https://stackoverflow.com/questions/69394632/webpack-build-failing-with-err-ossl-evp-unsupported
Looks like this is building, after using the required versions of google-closure, as mentioned in the package.json.
Using WSL, npm i -g webpack@4.46.0, and export NODE_OPTIONS=--openssl-legacy-provider