0
I am having a problem while installing the Gestures module to MagicMirror. The installation of npm dependencies is giving me an error, to be more specific this command is giving me errors while installing:
npm install serialport@4.x.x nodejs-websocket
I'm currently running the MagicMirror on a Raspberry Pi 2 model B, with Rasbian Stretch with Desptop version: April 2019.
Here is a complete log of the installation:
pi@raspberrypi:~/MagicMirror/modules/MMM-Gestures $ sudo npm install serialport@4.x.x nodejs-websocket
> serialport@4.0.7 install /home/pi/MagicMirror/modules/MMM-Gestures/node_modules/serialport
> node-pre-gyp install --fallback-to-build
node-pre-gyp info it worked if it ends with ok
node-pre-gyp verb cli [ '/usr/bin/node',
node-pre-gyp verb cli '/home/pi/MagicMirror/modules/MMM-Gestures/node_modules/serialport/node_modules/.bin/node-pre-gyp',
node-pre-gyp verb cli 'install',
node-pre-gyp verb cli '--fallback-to-build' ]
node-pre-gyp info using node-pre-gyp@0.6.32
node-pre-gyp info using node@10.15.3 | linux | arm
node-pre-gyp verb command install []
node-pre-gyp info check checked for "/home/pi/MagicMirror/modules/MMM-Gestures/node_modules/serialport/build/Release/serialport.node" (not found)
node-pre-gyp http GET https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v64-linux-arm.tar.gz
node-pre-gyp ERR! Tried to download(undefined): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v64-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@10.15.3 (node-v64 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http EACCES: permission denied, mkdir '/home/pi/MagicMirror/modules/MMM-Gestures/node_modules/serialport/build'
node-pre-gyp verb command build [ 'rebuild' ]
node-pre-gyp http 404 https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v64-linux-arm.tar.gz
node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v64-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@10.15.3 (node-v64 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v64-linux-arm.tar.gz
node-pre-gyp verb command build [ 'rebuild' ]
node-pre-gyp ERR! Tried to download(undefined): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v64-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@10.15.3 (node-v64 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http Connection closed while downloading tarball file
node-pre-gyp verb command build [ 'rebuild' ]
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/10.15.3"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/pi/MagicMirror/modules/MMM-Gestures/node_modules/serialport/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/pi/MagicMirror/modules/MMM-Gestures/node_modules/serialport/.node-gyp'
gyp ERR! System Linux 4.14.98-v7+
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/home/pi/MagicMirror/modules/MMM-Gestures/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/home/pi/MagicMirror/modules/MMM-Gestures/node_modules/serialport/build/Release"
gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-Gestures/node_modules/serialport
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/pi/MagicMirror/modules/MMM-Gestures/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/home/pi/MagicMirror/modules/MMM-Gestures/node_modules/serialport/build/Release' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/home/pi/MagicMirror/modules/MMM-Gestures/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:189:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:970:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
node-pre-gyp ERR! System Linux 4.14.98-v7+
node-pre-gyp ERR! command "/usr/bin/node" "/home/pi/MagicMirror/modules/MMM-Gestures/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-Gestures/node_modules/serialport
node-pre-gyp ERR! node -v v10.15.3
node-pre-gyp ERR! node-pre-gyp -v v0.6.32
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/pi/MagicMirror/modules/MMM-Gestures/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/home/pi/MagicMirror/modules/MMM-Gestures/node_modules/serialport/build/Release' (1)
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/10.15.3"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/pi/MagicMirror/modules/MMM-Gestures/node_modules/serialport/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/pi/MagicMirror/modules/MMM-Gestures/node_modules/serialport/.node-gyp'
gyp ERR! System Linux 4.14.98-v7+
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/home/pi/MagicMirror/modules/MMM-Gestures/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/home/pi/MagicMirror/modules/MMM-Gestures/node_modules/serialport/build/Release"
gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-Gestures/node_modules/serialport
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/10.15.3"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/pi/MagicMirror/modules/MMM-Gestures/node_modules/serialport/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error stall: info lifecycle serialport@4.0.7~install: Failed
gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/pi/MagicMirror/modules/MMM-Gestures/node_modules/serialport/.node-gyp'
gyp ERR! System Linux 4.14.98-v7+
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/home/pi/MagicMirror/modules/MMM-Gestures/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/home/pi/MagicMirror/modules/MMM-Gestures/node_modules/serialport/build/Release"
gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-Gestures/node_modules/serialport
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! serialport@4.0.7 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the serialport@4.0.7 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
This is my first post, so if you have any tips as how can i improve my post please tell me.
Hi niko, welcome to the site! It would be great to know the error itself, otherwise we'll have to put our guessing hats instead of knowing the details ;-) – ssice – 2019-04-17T21:39:22.080