久々に raspberry pi へ google-home-notifier をインストールしようとしたら


使っていなかった raspberry pi へ google-home-notifier をインストールしようとしたら

npm install でエラー
sudo ではなく su で root になってから npm install する

  1. # git clone https://github.com/noelportugal/google-home-notifier  
  2. # cd google-home-notifier  
  3. # npm install  
  4. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142  
  5.   
  6. > mdns@2.5.1 install /google-home-notifier/node_modules/mdns  
  7. > node-gyp rebuild  
  8.   
  9. gyp WARN EACCES current user ("USERNAME") does not have permission to access the dev dir "/root/.cache/node-gyp/10.20.1"  
  10. gyp WARN EACCES attempting to reinstall using temporary dev dir "/google-home-notifier/node_modules/mdns/.node-gyp"  
  11. gyp WARN install got an error, rolling back install  
  12. gyp WARN install got an error, rolling back install  
  13. gyp ERR! configure error   
  14. gyp ERR! stack Error: EACCES: permission denied, mkdir '/google-home-notifier/node_modules/mdns/.node-gyp'  
  15. gyp ERR! System Linux 4.19.66+  
  16. gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"  
  17. gyp ERR! cwd /google-home-notifier/node_modules/mdns  
  18. gyp ERR! node -v v10.20.1  
  19. gyp ERR! node-gyp -v v5.1.0  
  20. gyp ERR! not ok   
  21. npm WARN google-home-notifier@1.2.0 No repository field.  
  22.   
  23. npm ERR! code ELIFECYCLE  
  24. npm ERR! errno 1  
  25. npm ERR! mdns@2.5.1 install: `node-gyp rebuild`  
  26. npm ERR! Exit status 1  
  27. npm ERR!   
  28. npm ERR! Failed at the mdns@2.5.1 install script.  
  29. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.  
  30.   
  31. npm ERR! A complete log of this run can be found in:  
  32. npm ERR!     /root/.npm/_logs/2020-05-26....Z-debug.log  

コメント