Svelte kit page

2023-02-08T11:47:38.872198Z > node postinstall.js
2023-02-08T11:47:38.872345Z
2023-02-08T11:47:38.956020Z (node:1278) ExperimentalWarning: The ESM module loader is experimental.
2023-02-08T11:47:38.964139Z file:///opt/buildhome/repo/node_modules/@sveltejs/kit/postinstall.js:8
2023-02-08T11:47:38.964429Z const cwd = process.env.INIT_CWD ?? process.cwd();
2023-02-08T11:47:38.964592Z ^
2023-02-08T11:47:38.964711Z
2023-02-08T11:47:38.964829Z SyntaxError: Unexpected token '?'
2023-02-08T11:47:38.964951Z at Loader.moduleStrategy (internal/modules/esm/translators.js:81:18)
2023-02-08T11:47:38.965071Z at async link (internal/modules/esm/module_job.js:37:21)
2023-02-08T11:47:38.872198Z > node postinstall.js
2023-02-08T11:47:38.872345Z
2023-02-08T11:47:38.956020Z (node:1278) ExperimentalWarning: The ESM module loader is experimental.
2023-02-08T11:47:38.964139Z file:///opt/buildhome/repo/node_modules/@sveltejs/kit/postinstall.js:8
2023-02-08T11:47:38.964429Z const cwd = process.env.INIT_CWD ?? process.cwd();
2023-02-08T11:47:38.964592Z ^
2023-02-08T11:47:38.964711Z
2023-02-08T11:47:38.964829Z SyntaxError: Unexpected token '?'
2023-02-08T11:47:38.964951Z at Loader.moduleStrategy (internal/modules/esm/translators.js:81:18)
2023-02-08T11:47:38.965071Z at async link (internal/modules/esm/module_job.js:37:21)
i get this error from cloudflare
2 Replies
Walshy
Walshy17mo ago
Add the env var NODE_VERSION with the value 16
uzuark
uzuark17mo ago
thanks works now