You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
as pnpm creates bash scripts for bin instead of symlinking them, we can't launch them directly with node cli.
example:
> node -r dotenv/config node_modules/.bin/remix dev
/Users/mathieutu/Projects/compta-remix/node_modules/.bin/remix:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
^^^^^^^
SyntaxError: missing ) after argument list
if we put directly the target script:
> node -r dotenv/config node_modules/@remix-run/dev/cli.js dev
Watching Remix app in development mode...
💿 Built in 442ms
Remix App Server started at http://localhost:3000
Error: Cannot find module '@remix-run/server-runtime'
So how can we launch the script directly with node to allow flags usage, like -r?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
as pnpm creates bash scripts for bin instead of symlinking them, we can't launch them directly with node cli.
example:
if we put directly the target script:
So how can we launch the script directly with node to allow flags usage, like
-r
?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions