Developing for D2

I thought I would fork and clone the D2 repo to my dev raspberry pi so I could poke around with the v-calendar request I made a few weeks ago, which appears to have hit a bit of a road block.

Following these instructions Contributing | Node-RED Dashboard 2.0 I got to the npm run build command and received the following error message The Cypress App could not be installed. Your machine does not meet the operating system requirements.

So I'm assuming that Cypress cannot be installed on the Pi, and my efforts have also hit a road block. Is this a correct assumption?

Cheers
Bob

  1. What version of Node are you running?
    1. The Cypress App could not be downloaded (Can't install via NPM I on WINDOWS 2012) · Issue #6315 · cypress-io/cypress · GitHub seems to suggest a use had this with Node 16, 18 but not Node 20
    2. Other comments are "are you behind a proxy" or "have network issues"?
    3. NOTE: I am using Node 18 on a Win PC and cypress installs fines
  2. cypress is really only for testing so I am surprised the error came up at the npm run build step - most curious.
  1. Node.js version: v18.20.2
  2. No network issues, no proxy.
  3. Last section of the log where things went wrong is as follows:
1568 timing command:install Completed in 431328ms
1569 verbose stack Error: command failed
1569 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/                             lib/index.js:53:27)
1569 verbose stack     at ChildProcess.emit (node:events:517:28)
1569 verbose stack     at maybeClose (node:internal/child_process:1098:16)
1569 verbose stack     at ChildProcess._handle.onexit (node:internal/child_process:303:5)
1570 verbose pkgid cypress@13.13.3
1571 verbose cwd /home/pi/node-red-dashboard
1572 verbose Linux 6.1.21-v7+
1573 verbose node v18.20.2
1574 verbose npm  v10.5.0
1575 error code 1
1576 error path /home/pi/node-red-dashboard/node_modules/cypress
1577 error command failed
1578 error command sh -c node index.js --exec install
1579 error The Cypress App could not be installed. Your machine does not meet the operating system requirements.
1579 error
1579 error https://on.cypress.io/guides/getting-started/installing-cypress#system-requirements
1579 error
1579 error ----------
1579 error
1579 error Platform: linux-ia32 (Debian - 11)
1579 error Cypress Version: 13.13.3
1580 verbose exit 1
1581 timing npm Completed in 433742ms
1582 verbose unfinished npm timer reify 1725521734599
1583 verbose unfinished npm timer reify:build 1725521942936
1584 verbose unfinished npm timer build 1725521942978
1585 verbose unfinished npm timer build:deps 1725521942986
1586 verbose unfinished npm timer build:run:postinstall 1725522128764
1587 verbose unfinished npm timer build:run:postinstall:node_modules/cypress 1725522128856
1588 verbose code 1

If using a Pi is not the issue then at least I can look in another direction. I'll try again tomorrow.

Cheers

I am doing contributions for dashboard D2 on a Raspberry 4 all the time without problems. Cannot remember that I have had any issues related to Cypress.

BTW nice to hear that you want to try to contribute :+1:

Platform: linux-ia32

Is this maybe a hint (32bit)?

Might be relevant. For me it works fine on aarch64 ...

Yes, indeed, good pick up. I spun up a 64 bit Pi OS (and aside from JS heap issues which I solved) I now have a working clone of the Dashboard.

Thanks @bakman2

2 Likes

Baby steps :stuck_out_tongue_winking_eye:

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.