numworks / epsilon-sample-app-c

A sample C app for the NumWorks graphing calculator
BSD 3-Clause "New" or "Revised" License
6 stars 0 forks source link

"npx nwlink" fails on last versions (I tried 0.0.17 to 0.0.12) #4

Open Naereen opened 7 hours ago

Naereen commented 7 hours ago

Hi there, Thanks for this interesting demo! I wanted to work on it. However... I failed to compile it, on Ubuntu 22.04 Linux, using

$ npx --version
8.5.1
$ node --version
v12.22.9

The compilation fails because in the Makefile, the npx --yes -- nwlink@0.0.17 command is used, but it fails:

$ npx --yes -- nwlink@0.0.17
/home/USER/.npm/_npx/6d991536f923a4f6/node_modules/nwlink/dist/index.js:1
(()=>{var t={7481:(t,e,r)=>{var n,o=(n=(n="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0)||__filename,function(t);

SyntaxError: Unexpected token '='
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:85:18)
    at Object.<anonymous> (/home/lilian/.npm/_npx/6d991536f923a4f6/node_modules/nwlink/bin/nwlink:2:13)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)

I tried from versions 0.0.17 to 0.0.12, each giving the same issue.

Could you @Ecco, @EmilieNumworks (and other authors maybe) help me here, please? Thanks and regards from France as well ;-) @Naereen

Naereen commented 7 hours ago

Apparently, this has been opened also on the epsilon-sample-app-cpp project: https://github.com/numworks/epsilon-sample-app-cpp/issues/29