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

Unable to run or build #168

Open
samo-sato opened this issue Jan 7, 2024 · 2 comments
Open

Unable to run or build #168

samo-sato opened this issue Jan 7, 2024 · 2 comments

Comments

@samo-sato
Copy link

I am unable to run Topola Viewer locally via npm start command or npm run build. I get following error:
Screenshot at 2024-01-07 20-17-26
I am using Linux Mint 20 MATE with latest updates.

@PeWu
Copy link
Owner

PeWu commented Jan 9, 2024

My dev setup is Node.js v16 and it builds correctly.

I tried on another system with Node.js v18 and got the same failure as you did. In general, dependencies have to be updated but it is not as trivial as one would hope. This worked for me in the v18 setup:

npm update
export NODE_OPTIONS=--openssl-legacy-provider
npm run build

Note however that according to stackoverflow setting the --openssl-legacy-provider is not an ideal solution. However, the suggested best solution (npm audit fix --force) doesn't work for yet a different reason having to do with the adm-zip package and Webpack 5. Solving the adm-zip issue is the real path to untangling the dependencies.

@samo-sato
Copy link
Author

First, thank you for writing the app, I found a good use for it.
After running or building it using node v16 as suggested, it works. That's good enough for me.

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