Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An unexpected error occurred: "Cannot create property 'python39-python-exe' on string '{\"python39-python-exe\":\"\"}'". #8644

Closed
jwcarlsonsw opened this issue Jun 3, 2021 · 2 comments

Comments

@jwcarlsonsw
Copy link

Getting the error in the title, with the following yarn-error.log

I've tried following steps listed in this stack overflow thread where I try to run npm install --global windows-build-tools but that hit's its own set of issues. With VS build tools getting hung up

But, it seems pretty redundant to me as I've already manually installed VS2017 and the latest python.

Several other node-gyp, gulp

General Info

  • My current yarn version is 1.22.5
  • Windows 10
  • Python 3.9.5
  • Node v14.17.0

Some of the commands I've been running prior

npm install -g node-gyp 
npm install -g yarn 
npm install -g cross-env 
npm install --save-dev electron 
npm install -g gulp 
npm config set python "C:\Program Files\Python39\python.exe"
@stuartcusackie
Copy link

stuartcusackie commented Jun 14, 2021

I ran into this problem today. I fixed it by checking my ~/.npmrc file. There was an empty reference to python3.9: c:/Python39/python= . I just removed it and the error stopped happening.

I still have python=python2.7 in my .npmrc file.

By the way, windows-build-tools doesn't install for me anymore either. I use Chocolatey through powershell as adminstrator instead. Then I just install visual studio and python27 like so: choco upgrade python2 visualstudio2017-workload-vctools

@jwcarlsonsw
Copy link
Author

The way I ultimately resolved it was to uninstall node and python and then reinstalled node LFS using the chocolatey option for installing python. I then skipped the npm config set python "C:\Program Files\Python39\python.exe" during configuration step and then it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants