It looks like node.js and/or npm is not installed or cannot be found.
See original GitHub issueThroughout the install process I got to the step where this command was required:
python manage.py tailwind install
The resulting output is as follows:
CommandError:
It looks like node.js and/or npm is not installed or cannot be found.
Visit https://nodejs.org to download and install node.js for your system.
If you have npm installed and still getting this error message, set NPM_BIN_PATH variable in settings.py to match path of NPM executable in your system.
Example:
NPM_BIN_PATH = "/usr/local/bin/npm"
I have confirmed npm and nodejs are installed via the npm
and node
commands, both which work out okay and show valid installations. I also made sure to add NPM_BIN_PATH
to settings.py, which I set to 'C:\\Users\\MYUSERNAME\\AppData\\Roaming\\npm\\'
, still no luck. Maybe a bug?
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Node JS NPM modules installed but command not recognized
Click windows start button. · Look for "ALL APPS", you will see Node.js and Node.js Command prompt there. · You can run the...
Read more >How to Fix "npm command not found" Error {Node JS}
Why NPM command is not working? ... The reason may be either the npm package is not installed, incorrectly installed or the path...
Read more >npm not installed along with nodejs · Issue #554 - GitHub
If you installed node.js package from the official website. The npm part is under folder node-YOURVERSION/deps/npm, so go to that folder and run ......
Read more >How to fix npm install command not working
First, you need to make sure that npm is installed on your computer. npm is bundled with Node. js server, which you can...
Read more >How to fix the 'npm command not found' error on Windows ...
In this article, you will find information about JavaScript, Node.js, and npm, as well as the solution to the 'npm command not found...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You need to properly configure
NPM_BIN_PATH
for Windows, see example here: https://django-tailwind.readthedocs.io/en/latest/installation.html#configuration-of-the-path-to-the-npm-executableAs it turns out, I had to add .cmd to the end of my path. It works now. I can actually just set the path to
npm.cmd
and it works.Thanks