Closed daihiraoka closed 5 years ago
npm installコマンドの一部は、他のnodeとの依存関係で正常にinstallが完了したあとでも npmが依存した他のNodeをアンインストールしてしまう不具合が発見されています。
SDカードイメージを生成するための導入シェル中に以下記載があるとおり、 現在のイメージではnode-red-contrib-speakerpiは導入済みとなっていますので、 Node-REDフローエディタの左ペインに「speakerpi」と入力いただければ検索可能です。
https://github.com/tjbotfan/tjbotzero-raspbian/blob/master/install.sh#L51
I have the experience to see the problem but this project is for the script to install modules into Rasbian from scratch. I recommend that you submit the same issue on the node-red-contrib-speakerpi project. Therefore, I will close the issue. I appreciate if you understand the aim of this project.
node-red-contrib-speakerpiのインストールを実施するとエラーになり、再起動後、通電するが起動しなくなる。
> speaker@0.4.2 install /home/pi/.node-red/node_modules/speaker > node-gyp rebuild
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/8.11.1" gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/pi/.node-red/node_modules/speaker/.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/.node-red/node_modules/speaker/.node-gyp' gyp ERR! System Linux 4.14.98+ gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/pi/.node-red/node_modules/speaker gyp ERR! node -v v8.11.1 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! speaker@0.4.2 install:
node-gyp rebuild
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the speaker@0.4.2 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2019-06-23T15_27_56_908Z-debug.log pi@raspberrypi:~/.node-red $