askrella / whatsapp-chatgpt

ChatGPT + DALL-E + WhatsApp = AI Assistant :rocket: :robot:
3.49k stars 842 forks source link

NPM read-only cache and log dir #316

Open oloboy opened 1 year ago

oloboy commented 1 year ago

I have this error message during the installation but the authorizations are corrects

npm ERR! code EROFS whatsapp-chatgpt | npm ERR! syscall open whatsapp-chatgpt | npm ERR! path /root/.npm/_cacache/tmp/79e61f0d whatsapp-chatgpt | npm ERR! errno -30 whatsapp-chatgpt | npm ERR! rofs EROFS: read-only file system, open '/root/.npm/_cacache/tmp/79e61f0d' whatsapp-chatgpt | npm ERR! rofs Often virtualized file systems, or other file systems whatsapp-chatgpt | npm ERR! rofs that don't support symlinks, give this error. whatsapp-chatgpt | whatsapp-chatgpt | npm ERR! Log files were not written due to an error writing to the directory: /root/.npm/_logs whatsapp-chatgpt | npm ERR! You can rerun the command with --loglevel=verbose to see the logs in your terminal

image

oloboy commented 1 year ago

How it is possible??? the first of the docker advantage is "Docker is popular because it offers portability, consistency, and scalability for deploying applications in different environments" BULLSHIT

CodingJunmin commented 1 year ago

I have the same issue. @oloboy did you solve this issue?

robertsmaoui commented 10 months ago

same issue in windows !

oloboy commented 10 months ago

same issue in windows ! me too have windows as OS STOP to put garbage on githut and test your code before the upload

oloboy commented 10 months ago

try this https://github.com/askrella/whatsapp-chatgpt/issues/329

robertsmaoui commented 10 months ago

resolved whitout docker : Installation Clone this repository Install the required packages by running npm install Put your OpenAI API key into the .env file Example file: .env-example You can obtain an API key here Run the bot using npm run start Scan the QR code with WhatsApp (link a device)