python.exe Syntax issue - NPM

后端 未结 2 1274
梦如初夏
梦如初夏 2021-01-11 21:03

I am having trouble when running Npm install. I get the following error:

gyp ERR! stack Error: Command failed: C:\\Users\\userxxx\\AppData\\Local\\Programs\         


        
相关标签:
2条回答
  • 2021-01-11 21:40

    Two solution we can try in this case

    1. Downgrade Python to 2.x.

    2. Install the packages using npm install --ignore-scripts

      NOTE: This will cause npm to stop running scripts defined in the package.json

    0 讨论(0)
  • 2021-01-11 21:57

    The command you are attempting to run uses Python 2 syntax. It is incompatible with Python 3, so if you try to use that, you should get a syntax error.

    Either upgrade the script to Python 3 (about time already), or fix the execution path so that it can be run with the obsolescent Python version.

    0 讨论(0)
提交回复
热议问题