Let me share my experience:
When I installed tailwindcss on my PC with Ubuntu Linux at home, it worked seamlessly.
However, when I tried to set it up on my Windows 10 machine at work, it just refused to cooperate. I am really eager to kick off a new project using tailwindcss!
Here is the issue I encountered (when running npx tailwindcss init
):
PS C:\Bitnami\wampstack-7.4.22-0\apache2\htdocs\b&t-cambio\wp-content\themes\btcambio> npx tailwindcss init
't-cambio\wp-content\themes\btcambio\node_modules\.bin\' it is not recognized as an internal or external command, operable program, or batch file.
node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module 'C:\Bitnami\wampstack-7.4.22-0\apache2\htdocs\tailwindcss\lib\cli.js'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
I made sure that NPM is included in my PATH and it is. I have used npm many times before without any issues.
My current versions for npm, npx, and node are:
$ npm --version && npx --version && node --version
8.3.0
8.3.0
v16.13.1
I have scoured through various stackoverflow threads and forums regarding tailwindcss problems, but unfortunately, I haven't found a solution yet.
If anyone here has insights into what might be causing this issue, please share your thoughts.
Right now, all I want is to use pure CSS alongside tailwindcss, without any preprocessors...