You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I decided to give this a shot when integrating into an existing project and came across path referencing issues, specifically for npm based commands that are run via the subprocess.Popen commands (apologies if I've got the terminology wrong here). I've got the path to my npm set up correctly, can run the npm exec generate_client_configuration globally from the terminal and can see the path when printing out the PATH env variable before the command. Specifiying the full path to npm in those commands works and I wasn't sure where to next in terms of fault finding.
A potential solution I've seen is in the django-tailwind app, where the path to npm can be set within the settings file to overcome this issue. A quick look through the source shows reactivated\app.py and reactivated\__init__.py containing references to npm, I'd be happy to create a PR but I'm still quite new to the git side of house so bear with me on that front haha
The text was updated successfully, but these errors were encountered:
I'll look at a minimum working exmaple repo and upload, but in the interim, this is what I set (current OS is Windows 11) NPM_BIN_PATH = r"C:\Program Files\nodejs\npm.cmd"
I decided to give this a shot when integrating into an existing project and came across path referencing issues, specifically for npm based commands that are run via the
subprocess.Popen
commands (apologies if I've got the terminology wrong here). I've got the path to my npm set up correctly, can run thenpm exec generate_client_configuration
globally from the terminal and can see the path when printing out the PATH env variable before the command. Specifiying the full path tonpm
in those commands works and I wasn't sure where to next in terms of fault finding.A potential solution I've seen is in the django-tailwind app, where the path to
npm
can be set within the settings file to overcome this issue. A quick look through the source showsreactivated\app.py
andreactivated\__init__.py
containing references tonpm
, I'd be happy to create a PR but I'm still quite new to the git side of house so bear with me on that front hahaThe text was updated successfully, but these errors were encountered: