andrei-tatar / node-red-contrib-smartnora

Node Red Google Home integration
https://smart-nora.eu/
109 stars 24 forks source link

Can't install #200

Closed dowermyr closed 2 years ago

dowermyr commented 2 years ago

I get this error in the log:

2022-07-19T05:58:13.729Z Install : node-red-contrib-smartnora 1.13.8

2022-07-19T05:58:06.787Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-smartnora@1.13.8 2022-07-19T05:58:07.226Z [err] npm 2022-07-19T05:58:07.226Z [err] WARN config production Use --omit=dev instead. 2022-07-19T05:58:15.923Z [err] npm 2022-07-19T05:58:15.923Z [err] ERR! code ENOTEMPTY 2022-07-19T05:58:15.923Z [err] npm ERR! syscall rename 2022-07-19T05:58:15.923Z [err] npm ERR! path /config/node-red/node_modules/cbor 2022-07-19T05:58:15.923Z [err] npm ERR! dest /config/node-red/node_modules/.cbor-hOc85SqJ 2022-07-19T05:58:15.923Z [err] npm ERR! errno -39 2022-07-19T05:58:15.925Z [err] npm ERR! ENOTEMPTY: directory not empty, rename '/config/node-red/node_modules/cbor' -> '/config/node-red/node_modules/.cbor-hOc85SqJ' 2022-07-19T05:58:15.927Z [err] 2022-07-19T05:58:15.928Z [err] npm ERR! A complete log of this run can be found in: 2022-07-19T05:58:15.928Z [err] npm ERR! 2022-07-19T05:58:15.928Z [err] /root/.npm/_logs/2022-07-19T05_58_07_194Z-debug-0.log 2022-07-19T05:58:15.947Z rc=217

andrei-tatar commented 2 years ago

@dowermyr What are you running node-red on? What version of node.js (node --version) are you running?

It seems like you're running node-red as root.

dowermyr commented 2 years ago

It is an addon in HA OS

andrei-tatar commented 2 years ago

It seems to be an issue in npm (https://stackoverflow.com/questions/35528425/enotempty-directory-not-empty-rename-javascript-npm-ubuntu-serve)

Can you trying deleting node_modules folder and doing an npm install ? From the logs seems like this would do:

cd /config/node-red
rm -rf node_modules
npm install
github-actions[bot] commented 2 years ago

This issue is stale because it has been open for 14 days with no activity.

github-actions[bot] commented 2 years ago

This issue was closed because it has been inactive for 7 days since being marked as stale.