question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

It looks like node.js and/or npm is not installed or cannot be found.

See original GitHub issue

Throughout 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:closed
  • Created 2 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
timonwebcommented, Oct 12, 2021

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-executable

5reactions
JakeBelangercommented, Oct 14, 2021

As 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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found