Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yarn command not found #421

Open
5 tasks
mariazahidd opened this issue Jul 19, 2021 · 0 comments
Open
5 tasks

Yarn command not found #421

mariazahidd opened this issue Jul 19, 2021 · 0 comments

Comments

@mariazahidd
Copy link

mariazahidd commented Jul 19, 2021

  • System Information
    • Windows 10
    • WINDOWS: git bash, vs code bash terminal
    • Node version: v14.17.3
    • Yarn version: 1.22.5

I am using yarn in my project. I have installed yarn globally. when I try to run yarn with commands such as nodemon, it gives command not found error. The exact error is

/usr/bin/bash: C:UsersusernameDownloadsprojectnamenode_modules.binnodemon: command not found

This is the command I am trying to run
yarn nodemon --watch .env --watch ''\''client/*.config.js'\''' --watch ''\'''\''' --watch server --ext ts,tsx,js,json --delay 1 --exec yarn ts-node --project server/tsconfig.json --transpile-only server/index.ts

which converts to
C:\Users\username\Downloads\projectname\node_modules\.bin\nodemon --watch .env --watch 'client/*.config.js' --watch '' --watch server --ext ts,tsx,js,json --delay 1 --exec yarn ts-node --project server/tsconfig.json --transpile-only server/index.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant