might be worth adding, if there are any requirements which versions of npm and node are required to run it.
"engines": { "node": ">=20.0.0", "npm": ">=9.0.0" },
Personally, I was not able to run this until i used node 24x
(using nvm, ubuntu 22.04)
on 20 and 22 node,
i received the following error when running npm run dev
[tailwind] setup failed: [tailwind] Initial Tailwind build failed.
input: ./app/styles/index.css
config: ./packages/app/ui/tailwind-default.config.mjs
cli: /home/myusername/.nvm/versions/node/v20.15.0/bin/node /home/myusername/prg/canopy-app/node_modules/@tailwindcss/cli/dist/index.mjs -i /home/myusername/prg/canopy-app/app/styles/index.css -o /home/myusername/prg/canopy-app/site/styles/styles.css -c /home/myusername/prg/canopy-app/packages/app/ui/tailwind-default.config.mjs --minify
exitCode: 1
stderr: /home/myusername/prg/canopy-app/node_modules/@tailwindcss/oxide/index.js:372
throw new Error('Failed to load native binding', { cause: loadErrors })
^
Error: Failed to load native binding
at Object. (/home/myusername/prg/canopy-app/node_modules/@tailwindcss/oxide/index.js:372:11)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
at Module.load (node:internal/modules/cjs/loader:1208:32)
at Module._load (node:internal/modules/cjs/loader:1024:12)
at cjsLoader (node:internal/modules/esm/translators:348:17)
at ModuleWrap. (node:internal/modules/esm/translators:297:7)
at ModuleJob.run (node:internal/modules/esm/module_job:222:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:123:5) {
[cause]: [
Error: Cannot find module './tailwindcss-oxide.linux-x64-gnu.node'
Require stack:
- /home/myusername/prg/canopy-app/node_modules/@tailwindcss/oxide/index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
at Module._load (node:internal/modules/cjs/loader:986:27)
at Module.require (node:internal/modules/cjs/loader:1233:19)
at require (node:internal/modules/helpers:179:18)
at requireNative (/home/myusername/prg/canopy-app/node_modules/@tailwindcss/oxide/index.js:224:16)
at Object. (/home/myusername/prg/canopy-app/node_modules/@tailwindcss/oxide/index.js:345:17)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
at Module.load (node:internal/modules/cjs/loader:1208:32)
at Module._load (node:internal/modules/cjs/loader:1024:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/myusername/prg/canopy-app/node_modules/@tailwindcss/oxide/index.js'
]
},
Error: Cannot find module '@tailwindcss/oxide-linux-x64-gnu'
Require stack:
- /home/myusername/prg/canopy-app/node_modules/@tailwindcss/oxide/index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
at Module._load (node:internal/modules/cjs/loader:986:27)
at Module.require (node:internal/modules/cjs/loader:1233:19)
at require (node:internal/modules/helpers:179:18)
at requireNative (/home/myusername/prg/canopy-app/node_modules/@tailwindcss/oxide/index.js:229:16)
at Object. (/home/myusername/prg/canopy-app/node_modules/@tailwindcss/oxide/index.js:345:17)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
at Module.load (node:internal/modules/cjs/loader:1208:32)
at Module._load (node:internal/modules/cjs/loader:1024:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/myusername/prg/canopy-app/node_modules/@tailwindcss/oxide/index.js'
]
}
]
}
Node.js v20.15.0
might be worth adding, if there are any requirements which versions of npm and node are required to run it.
"engines": { "node": ">=20.0.0", "npm": ">=9.0.0" },Personally, I was not able to run this until i used node 24x
(using nvm, ubuntu 22.04)
on 20 and 22 node,
i received the following error when running
npm run devNode.js v20.15.0