Skip to content

Yarn command not found #421

Description

@mariazahidd
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions