Error coming from `npm exec remix vite:dev`

Hello!
I am starting on a payment app with an off-site extension.
Unfortunately, running shopify app dev ends with error:

Error coming from `npm exec remix vite:dev`
Command failed with exit code 1: npm exec remix vite:dev
npm error could not determine executable to run

I’d very much appreciate a pointer of as to what this could mean?
Googled for this and all I could find was another similar question (unanswered) on the Shopify dev forum.
The app is Remix with latest shopify-cli.
The log says:

0 verbose cli /home/robert/.nvm/versions/node/v23.11.1/bin/node /home/robert/.nvm/versions/node/v23.11.1/bin/npm
1 info using npm@10.9.2
2 info using node@v23.11.1
3 silly config load:file:/home/robert/.nvm/versions/node/v23.11.1/lib/node_modules/npm/npmrc
4 silly config load:file:/home/robert/payabl-checkout/.npmrc
5 silly config load:file:/home/robert/.npmrc
6 silly config load:file:/home/robert/.nvm/versions/node/v23.11.1/etc/npmrc
7 verbose title npm exec remix vite:dev
8 verbose argv "exec" "remix" "vite:dev"
9 verbose logfile logs-max:10 dir:/home/robert/.npm/_logs/2025-05-27T13_15_09_456Z-
10 verbose logfile /home/robert/.npm/_logs/2025-05-27T13_15_09_456Z-debug-0.log
11 silly logfile start cleaning logs, removing 1 files
12 silly logfile done cleaning log files
13 silly packumentCache heap:2105278464 maxSize:526319616 maxEntrySize:263159808
14 http fetch GET 200 https://registry.npmjs.org/remix 102ms (cache revalidated)
15 verbose stack Error: could not determine executable to run
15 verbose stack     at getBinFromManifest (/home/robert/.nvm/versions/node/v23.11.1/lib/node_modules/npm/node_modules/libnpmexec/lib/get-bin-from-manifest.js:17:23)
15 verbose stack     at exec (/home/robert/.nvm/versions/node/v23.11.1/lib/node_modules/npm/node_modules/libnpmexec/lib/index.js:202:15)
15 verbose stack     at async Npm.exec (/home/robert/.nvm/versions/node/v23.11.1/lib/node_modules/npm/lib/npm.js:207:9)
15 verbose stack     at async module.exports (/home/robert/.nvm/versions/node/v23.11.1/lib/node_modules/npm/lib/cli/entry.js:74:5)
16 verbose pkgid remix@2.16.7
17 error could not determine executable to run
18 verbose cwd /home/robert/payabl-checkout
19 verbose os Linux 5.10.0-27-amd64
20 verbose node v23.11.1
21 verbose npm  v10.9.2
22 verbose exit 1
23 verbose code 1

Thank you in advance!

Hi! I’m not able to reproduce. I’ve tried this with Ubuntu, Node 23.11.1, NPM 10.9.2 and Shopify CLI 3.80.7:

  • shopify app init --template remix --flavor javascript
  • shopify app generate extension --template offsite_payments
  • shopify app dev

Is that what you are trying? Could you run shopify app dev --verbose and share the output?

Hi @gonzaloriestra!
Thank you for reaching out!

What I have done is npm init @shopify/app@latest chose Build a Remix app (recommended) with Javascript followed by shopify app generate extension then npm install shopify app deploy shopify app dev which got me to that error.

Since posting I have deleted this app and recreated it exactly the same with the only difference in choosing Build an extension-only app instead of the Build a Remix app (recommended).

With this approach the error is gone.
But I remember reading somewhere that selecting Build an extension-only app leads to a more restricted app extension so I am not sure if I should proceed with this latest approach.

What do you think?

I’m not an expert in Payment extensions, but I think the Remix app is only required if you want an embedded app page.

Actually, the offsite payment extension documentation suggests to create an extension-only app. So it should be fine to continue with that.

However, if you share the verbose output, we can investigate the error.

The reason I have chosen the Remix app was because I thought that way I can add a configuration page in admin for our payment methods.
I have probably been wrong.
I’ll continue using the extension only approach although I have to figure out how to add that admin app settings page.
Your reply is the correct one, I have marked it as the solution.
Thank you @gonzaloriestra for taking the time to clarify this.

1 Like

You probably need an Admin UI extension.

Thank you!
Much appreciated!
All the best to you!

Have you found any solution to this? I’m having the same error.

Error coming from npm exec remix vite:dev

Command failed with exit code 1: npm exec remix vite:dev
npm warn Unknown project config “auto-install-peers”. This will stop working in the next major version of npm.
npm warn Unknown project config “shamefully-hoist”. This will stop working in the next major version of npm.
npm warn Unknown project config “enable-pre-post-scripts”. This will stop working in the next major version of npm.
failed to load config from C:\Users\jefferson.rosales\desktop\projects\training\wishlist-03\vite.config.ts
Error [ERR_REQUIRE_CYCLE_MODULE]: Cannot require() ES Module
C:\Users\jefferson.rosales\desktop\projects\training\wishlist-03\node_modules\vite\dist\node\index.js in a cycle. (from
C:\Users\jefferson.rosales\desktop\projects\training\wishlist-03\node_modules\vite-node\dist\server.cjs)
at ModuleLoader.importSyncForRequire (node:internal/modules/esm/loader:309:15)
at loadESMFromCJS (node:internal/modules/cjs/loader:1371:24)
at Module._compile (node:internal/modules/cjs/loader:1511:5)
at Module._extensions..js (node:internal/modules/cjs/loader:1572:16)
at Module.load (node:internal/modules/cjs/loader:1275:32)
at Module._load (node:internal/modules/cjs/loader:1096:12)
at Module.require (node:internal/modules/cjs/loader:1298:19)
at require (node:internal/modules/helpers:182:18)
at Object.
(C:\Users\jefferson.rosales\desktop\projects\training\wishlist-03\node_modules\vite-node\dist\server.cjs:9:12)
at Module._compile (node:internal/modules/cjs/loader:1529:14) {
code: ‘ERR_REQUIRE_CYCLE_MODULE’
}