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.

[BUG] Installation on Windows

See original GitHub issue

I am encountering a bug in the installation process in Windows. When trying to python manage.py tailwind install it says

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"

Even though npm is installed and can be accessed via npm in the same shell.

I tried:

  • Restarting
  • Switching to macOS (works)
  • Adding NPM_BIN_PATH with \ , / and \ as dividers and %20 as space sign
  • Switching consoles from PowerShell and CMD

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:6

github_iconTop GitHub Comments

4reactions
nreyes-clcommented, Oct 18, 2021

Try this code, it worked in my project

NPM_BIN_PATH = r"C:\Program Files\nodejs\npm.cmd"

0reactions
Kingsoglobaltechcommented, Mar 18, 2022

am facing same issue please help

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to troubleshoot Windows Installer errors - Microsoft Support
Click Start windows icon · Right-click Windows Installer, and then click Properties. · If the Startup type box is set to Disabled, change...
Read more >
Install Mantis Bug Tracker on Windows - YouTube
Learn how to install MantisBT on local server on Windows.
Read more >
Installing BUGS and the R to BUGS Interface
Install the rjags and coda packages (they run under R). • Optionally, install the R2jags package. If you are a Windows user: •...
Read more >
4 Solutions to Fix Windows 10/11 Installation Has Failed
Uninstall or disable any antivirus program you have installed on your computer. This is to ensure nothing interrupts your Windows installation; Restart your ......
Read more >
WinBUGS - MRC Biostatistics Unit - University of Cambridge
Introduction to WinBUGS; Installing WinBUGS 1.4 in Windows ... WinBUGS is part of the BUGS project, which aims to make practical MCMC methods...
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