https://github.com/yang991178/fluent-reader?tab=readme-ov-file#build-from-source

Below, am I doing something wrong? I’m not familiar with npm.

% npm install 
npm warn deprecated electron-osx-sign@0.6.0: Please use @electron/osx-sign moving forward. Be aware the API is slightly different
npm error code 1
npm error path /usr/home/grahamperrin/dev/fluent-reader/node_modules/electron
npm error command failed
npm error command sh -c node install.js
npm error HTTPError: Response code 404 (Not Found)
npm error     at Request._onResponseBase (/usr/home/grahamperrin/dev/fluent-reader/node_modules/got/dist/source/core/index.js:913:31)
npm error     at Request._onResponse (/usr/home/grahamperrin/dev/fluent-reader/node_modules/got/dist/source/core/index.js:948:24)
npm error     at ClientRequest.<anonymous> (/usr/home/grahamperrin/dev/fluent-reader/node_modules/got/dist/source/core/index.js:962:23)
npm error     at Object.onceWrapper (node:events:634:26)
npm error     at ClientRequest.emit (node:events:531:35)
npm error     at origin.emit (/usr/home/grahamperrin/dev/fluent-reader/node_modules/@szmarczak/http-timer/dist/source/index.js:43:20)
npm error     at HTTPParser.parserOnIncomingClient (node:_http_client:698:27)
npm error     at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
npm error     at TLSSocket.socketOnData (node:_http_client:540:22)
npm error     at TLSSocket.emit (node:events:519:28)
npm error A complete log of this run can be found in: /home/grahamperrin/.npm/_logs/2024-06-30T14_07_35_330Z-debug-0.log
% less /home/grahamperrin/.npm/_logs/2024-06-30T14_07_35_330Z-debug-0.log
% pwd
/usr/home/grahamperrin/dev/fluent-reader
% ls -hln
total 1
drwxr-xr-x  4 1002 1002   11B 30 Jun 15:07 build
drwxr-xr-x  5 1002 1002   10B 30 Jun 15:07 dist
drwxr-xr-x  3 1002 1002    5B 30 Jun 15:07 docs
-rw-r--r--  1 1002 1002  909B 30 Jun 15:07 electron-builder-mas.yml
-rw-r--r--  1 1002 1002  1.3K 30 Jun 15:07 electron-builder.yml
-rw-r--r--  1 1002 1002  1.5K 30 Jun 15:07 LICENSE
-rw-r--r--  1 1002 1002  456K 30 Jun 15:07 package-lock.json
-rw-r--r--  1 1002 1002  1.8K 30 Jun 15:07 package.json
-rw-r--r--  1 1002 1002  3.5K 30 Jun 15:07 README.md
drwxr-xr-x  7 1002 1002   12B 30 Jun 15:07 src
-rw-r--r--  1 1002 1002  173B 30 Jun 15:07 tsconfig.json
-rw-r--r--  1 1002 1002  2.1K 30 Jun 15:07 webpack.config.js
% 

From what’s in the debug log – 1,440 lines (available on request) – I don’t know where to start.

  • grahamperrin@blendit.bsd.cafeOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    6 months ago

    ELECTRON_SKIP_BINARY_DOWNLOAD

    Thanks to aiz.wallenstein in FreeBSD Discord at (in response to a failed npm audit fix for a different software title):

    % setenv ELECTRON_SKIP_BINARY_DOWNLOAD 1
    % npm install
    npm warn deprecated electron-osx-sign@0.6.0: Please use @electron/osx-sign moving forward. Be aware the API is slightly different
    
    added 604 packages, and audited 605 packages in 1m
    
    70 packages are looking for funding
      run `npm fund` for details
    
    19 vulnerabilities (6 moderate, 8 high, 5 critical)
    
    To address issues that do not require attention, run:
      npm audit fix
    
    To address all issues possible (including breaking changes), run:
      npm audit fix --force
    
    Some issues need review, and may require choosing
    a different dependency.
    
    Run `npm audit` for details.
    % npm audit fix
    
    added 4 packages, removed 1 package, changed 9 packages, and audited 608 packages in 22s
    
    70 packages are looking for funding
      run `npm fund` for details
    
    # npm audit report
    
    …