Question on shebang #!/user/bin/env vite-node #6025
Unanswered
alexbjorlig
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I understand if this question is out of scope, but I'm struggeling to make
#!/user/bin/env
working in a Dockercontainer.On my Mac OS, this works like a charm, and I can execute scripts without prefexing with
vite-node
.But when I do it on my newly created Docker container I get:
Why is that 🤔 It works when I provide
vite-node <script-path>
Here are some more info:
which vite-node:
/usr/local/share/npm-global/bin/vite-node
echo $PATH
/vscode/vscode-server/bin/linux-arm64/5437499feb04f7a586f677b155b039bc2b3669eb/bin/remote-cli:/usr/local/share/nvm/current/bin:/usr/local/share/npm-global/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/node/.local/bin
ChatGPT has been throwing me left and right, so looking for someone with more experince than me with Docker/Unix 😅
Beta Was this translation helpful? Give feedback.
All reactions