When running npm run dev, I get
'astro' is not recognized as an internal or external command,
operable program or batch file.
Node version v18.12.1 is installed on my system with windows 10.
I repeated npm install although it was already done through CLI.
I would be really grateful if somebody could point me on the right direction. 🙂
#Cannot run astro
57 messages · Page 1 of 1 (latest)
Is your terminal point to your projects root folder?
Yes. terminal is in the same folder. I created astro app on astro101 folder and node_modules and all package.json are in this same folder.
npm run dev
did that, and got 'astro' is not recognized as an internal or external command,
operable program or batch file.
hmmm... 
I can do npm run in other projects like in sass just fine..and node is v18.12.1
ok
npm run start
did you re run npm install?
yes.. will do again
This error message could basically mean one of two things:
- The filename of the executable was entered without extension and without the whole path.
- Windows didn’t find the executable that matched the filename, including its extension, in any directory mentioned in Environment Variables “Path”.
did that but same prob again
npm run runs fine on other projects though..sud I add anything to env variable?
ok but this is my third try..will try another one again
astro build
'astro' is not recognized as an internal or external command,
operable program or batch file.
does not create dist
created another one with default values and same prob again
i think that you should file an issue in github
this is an unexpected behavior.
still thinking if we're missing something

yea, what am I missing? All other stuff I run in my comp is all running fine including npm on other projects..
thank u so much for trying though, really appreciate it
anytime, hope you find a way to handle this.
yea, me too.. tried with pnpm for a change, same prob
i use pnpm
sud I ditch windows for linux? hmm


