cihat / full-stack-twitter-clone

loading full-stack developer 🚀
https://full-stack-twitter-clone-frontend.vercel.app/
MIT License
104 stars 36 forks source link

vue-cli-service not found in Frontend #2

Open eboye opened 3 years ago

eboye commented 3 years ago

I've ran docker compose up but it gives me this error in Frontend container:

yarn run v1.22.4

$ vue-cli-service serve

info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

/bin/sh: vue-cli-service: not found

error Command failed with exit code 127.

I've tried running yarn install inside frontend folder thinking it may need node-modules, but without success.

cihat commented 3 years ago

thank you for the issue i will look into this bug asap @eboye

eboye commented 2 years ago

I've managed to run it by changing the package.json scripts to:

"scripts": {
    "serve": "npx -p @vue/cli-service vue-cli-service serve",
    "build": "npx -p @vue/cli-service vue-cli-service build",
    "lint": "npx -p @vue/cli-service vue-cli-service lint"
},