-
Notifications
You must be signed in to change notification settings - Fork 14
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
npm run deploy: "$npm_execpath" isn't recognized as an internal or external command, program, or executable batch file #52
Comments
Sounds nice, but in my opinion, I don't need the build command in deploy alias. If you would like to include a build command, it would be good if we could control it with |
You may be right. This is kind of a personal taste. I like to include the build command in the deploy command so I don't forget to build. |
Can you work on this? |
Hi @yusukebe! I was busy for the last a few days. The problem is that the syntax of environment variables is different on each platforms. A Stack Overflow answer suggests using EDIT: I just found out that |
Hi @6km Thank you for the information. Hmm, suppose we'll have to replace |
What version of Hono are you using?
4.4.7
What runtime/platform is your app running on?
Windows, Node.js v22.3.0
What steps can reproduce the bug?
Hi, it's the Windows guy again.
When I run
npm run deploy
, it shows error:"$npm_execpath" isn't recognized as an internal or external command, program, or executable batch file
According to:
https://stackoverflow.com/questions/53883405/npm-execpath-isnt-recognized-as-an-internal-or-external-command-program-or
I changed from:
"deploy": "$npm_execpath run build && wrangler pages deploy"
to:
"deploy": "npm run build && wrangler pages deploy"
Then the problem solved.
Is there a solution which compatible both Windows and Linux?
Thank you
Best
The text was updated successfully, but these errors were encountered: