fivdi / pigpio

Fast GPIO, PWM, servo control, state change notification and interrupt handling with Node.js on the Raspberry Pi
MIT License
943 stars 89 forks source link

"pigpio" error Maximum call stack size exceeded #150

Closed Marco-exports closed 11 months ago

Marco-exports commented 1 year ago

Hi . . .

I followed all you install instructions with v79, but I keep getting :

verbose Linux 5.10.103-v7l+ 24443 verbose argv "/home/pi/.nvm/versions/node/v12.22.12/bin/node" "/home/pi/.nvm/versions/node/v12.22.12/bin/npm" "install" "pigpio" 24444 verbose node v12.22.12 24445 verbose npm v6.14.16 "pigpio" error Maximum call stack size exceeded

Marco-exports commented 1 year ago

This error happens each time I do -->> npm install pigpio

fivdi commented 1 year ago

Following the installation instructions shown here, pigpio installs successfully for me:

$ npm install pigpio

added 4 packages, and audited 5 packages in 13s

found 0 vulnerabilities
$ 

Here is some additional information related to the Raspberry Pi being used:

$ uname -a
Linux raspberrypi 5.15.61-v8+ #1579 SMP PREEMPT Fri Aug 26 11:16:44 BST 2022 aarch64 GNU/Linux
$ node --version
v12.22.12
$ npm --version
7.5.2
$ pigpiod -v
79
$ 

I'm afraid I can't reproduce the error and assume the issue is related to how your system is set up. From the path /home/pi/.nvm/versions/node/v12.22.12/bin/node shown in the initial post above, the directory name .nvm indicates that you may be using nvm (Node Version manager) which I'm not using. I can't explain why the error is occurring.