koush / scrypted

Scrypted is a high performance video integration and automation platform
https://scrypted.app
Other
3.91k stars 237 forks source link

npm ERR!: need help #1397

Closed tsmitsmitonline closed 3 months ago

tsmitsmitonline commented 3 months ago

I installed Scripted on my MacOS. Command in terminal:

curl -s https://raw.githubusercontent.com/koush/scrypted/main/install/local/install-scrypted-dependencies-mac.sh > ~/install-scrypted-dependencies-mac.sh bash ~/install-scrypted-dependencies-mac.sh rm ~/install-scrypted-dependencies-mac.sh

Gives this result with errors....

Installing Scrypted... Running: /opt/homebrew/opt/node@20/bin/npx -y scrypted@latest install-server npm ERR! code EACCES npm ERR! syscall open npm ERR! path /Users/timosmit/.npm/_cacache/index-v5/85/aa/7abb529da4ccdc917436278c1306c49cce2ff3f33948211aad74f110e516 npm ERR! errno EACCES npm ERR! npm ERR! Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which has since been addressed. npm ERR! npm ERR! To permanently fix this problem, please run: npm ERR! sudo chown -R 501:20 "/Users/timosmit/.npm"

npm ERR! A complete log of this run can be found in: /Users/timosmit/.npm/_logs/2024-03-27T20_37_28_180Z-debug-0.log Error during previous command.

==> What is going wrong and how to get this work?