Build Blockly problem
See original GitHub issueDescribe the bug
I downloaded the source code from: https://github.com/google/blockly/releases/tag/6.20210701.0 I am going to modify the source code to add some features and before doing so, I tried to build the downloaded and unmodified source code using: npm run build:core
The following is from the log:
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'build:core'
1 verbose cli ]
2 info using npm@6.14.13
3 info using node@v14.17.3
4 verbose run-script [ 'prebuild:core', 'build:core', 'postbuild:core' ]
5 info lifecycle blockly@6.20210701.0~prebuild:core: blockly@6.20210701.0
6 info lifecycle blockly@6.20210701.0~build:core: blockly@6.20210701.0
7 verbose lifecycle blockly@6.20210701.0~build:core: unsafe-perm in lifecycle true
8 verbose lifecycle blockly@6.20210701.0~build:core: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\WDAGUtilityAccount\Downloads\blockly-6.20210701.0\node_modules\.bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Users\WDAGUtilityAccount\AppData\Local\Microsoft\WindowsApps;C:\Users\WDAGUtilityAccount\AppData\Roaming\npm
9 verbose lifecycle blockly@6.20210701.0~build:core: CWD: C:\Users\WDAGUtilityAccount\Downloads\blockly-6.20210701.0
10 silly lifecycle blockly@6.20210701.0~build:core: Args: [ '/d /s /c', 'gulp buildCore' ]
11 silly lifecycle blockly@6.20210701.0~build:core: Returned: code: 1 signal: null
12 info lifecycle blockly@6.20210701.0~build:core: Failed to exec build:core script
13 verbose stack Error: blockly@6.20210701.0 build:core: `gulp buildCore`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:375:28)
13 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:375:28)
13 verbose stack at maybeClose (internal/child_process.js:1055:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
14 verbose pkgid blockly@6.20210701.0
15 verbose cwd C:\Users\WDAGUtilityAccount\Downloads\blockly-6.20210701.0
16 verbose Windows_NT 10.0.19041
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build:core"
18 verbose node v14.17.3
19 verbose npm v6.14.13
20 error code ELIFECYCLE
21 error errno 1
22 error blockly@6.20210701.0 build:core: `gulp buildCore`
22 error Exit status 1
23 error Failed at the blockly@6.20210701.0 build:core script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
To Reproduce
- Installed Git (2.32.0.2)
- Install Node.js (14.17.3 )
- Download the source code from: https://github.com/google/blockly/releases/tag/6.20210701.0. Unzip it.
- Inside the folder run: npm ci
- Inside the folder run: npm run build:core
I have followed the document: https://developers.google.com/blockly/guides/modify/web/building. However, it does not mention Git, do I need to install it in order to rebuild the source? Any help is much appreciated. Thanks a lot!
Desktop (please complete the following information):
- OS: [e.g. iOS]: Windows 10 21H1
- Browser [e.g. chrome, safari] Microsoft Edge
- Version [e.g. 22]
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top Results From Across the Web
Building Blockly - Google Developers
Blockly comes with both the source code and compressed files, so there is no need to build Blockly unless you are hacking in...
Read more >Can't call any Blockly methods in index.html even though it ...
The problem is that all the functions that come from the Blockly-package work fine in all the .js-files (main.js, html_generator.js and so on) ......
Read more >cannot build dev-tools, nor run - Google Groups
I just copied Blockly samples, and tried to compile it, but at 'npm install' I have ... If I try 'start' script or...
Read more >Blockly Programming: Solving All the Common Issues
After you've integrated Blockly into your app, you'll need to make blocks for your users to code with and upload them to your...
Read more >blockly - Google Code
ID Status Summary
250 New JSON Export Import Type‑Defect Priority‑Medium
245 New Incorrect graphs drawn Type‑Defect Priority‑Medium
244 Fixed Broken internal link Type‑Defect Priority‑Medium
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry press the wrong button.
Sure thing! Glad I could help 😄 I’m going to close this issue. If you have any further problems with building (or anything else) feel free to post a message on our forum (we try to keep questions there for the most part hehe).
Best wishes! –Beka