aboutcode-org / aboutcode-org/scancode-workbench

Unable to build SCWB on Windows 10

未關閉
#514 8 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug packaging and ci windows
主要語言
TypeScript
星號
173
分支
81
PR 合併指標
30 天內沒有已合併 PR

描述

I discovered in recent days that I am unable to build the current version of SCWB on my Windows 10 laptop using Git Bash.

This process still works when I check out the latest tag -- `v3.1.1` from the latest release, in September 2019 -- and build with Python 2.7.15.
- run `npm install`
- run `./node_modules/.bin/electron-rebuild`
- run `npm start` -- SCWB launched, looked good, displayed some data just fine
- close the SCWB 3.1.1 instance
- run `/c/Python27/python.exe build.py`
- navigate to the `/dist/` folder, double click `ScanCode-Workbench.exe` and no errors -- SCWB 3.1.1 opens, runs fine, looks great.

With the current code, the 1st 3 steps work with both Python 2.7.15 and Python3 (3.8.3). No error during the build process, but when I try to run the built `.exe` I get a JavaScript error: `Cannot find module '../dist/src/main'`.

Not sure what is meant by `Cannot find module '../dist/src/main'` but can confirm there is no such folder. Same result when extracting the .zip and running the `.exe` found there. I also get an error running `npm test`.

Perhaps I'm using the wrong version of `npm`, or `node.js` (but they look like they meet the RTD Windows requirements -- https://scancode-workbench.readthedocs.io/en/develop/contribute/building.html#windows)? (I have npm 5.2.0 and node 12.16.3.) Seems like some conflict was introduced after the 3.1.1 tag was created.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。