Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

sh: vite: command not found #5381

Closed
7 tasks done
aleandro-coppola opened this issue Oct 22, 2021 · 1 comment
Closed
7 tasks done

sh: vite: command not found #5381

aleandro-coppola opened this issue Oct 22, 2021 · 1 comment

Comments

@aleandro-coppola
Copy link

Describe the bug

I tried to remove node_modules but it doesn't work, even with npx.

Reproduction

npm init vite@latest my-vue-app -- --template vue
cd my-vue-app
npm install
npm run dev

System Info

System:
    OS: macOS 11.6
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 207.84 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.11.1 - ~/.nvm/versions/node/v16.11.1/bin/node
    Yarn: 1.22.17 - ~/.nvm/versions/node/v16.11.1/bin/yarn
    npm: 8.0.0 - ~/.nvm/versions/node/v16.11.1/bin/npm
  Browsers:
    Chrome: 93.0.4577.63
    Edge: 93.0.961.38
    Firefox: 93.0
    Safari: 15.0
  npmPackages:
    @vitejs/plugin-vue: ^1.9.3 => 1.9.3 
    vite: ^2.6.4 => 2.6.10

Used Package Manager

npm

Logs

sh: vite: command not found
zsh: command not found: vite

Validations

@haoqunjiang
Copy link
Member

Maybe comments in these issues could help: #1215 npm/cli#2147 (comment)

Please check your ~/.npmrc (maybe bin-links is set to false), your shell configurations (for suspicious environment variables), etc.

I'm converting this issue to a discussion because it is very unlikely a Vite bug.
We need to keep the issue tracker clean to focus more on concrete bugs and feature requests.

@vitejs vitejs locked and limited conversation to collaborators Oct 27, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

2 participants