在vscode终端安装模块报以下错误,后来在win自带powershell里安装包顺利完成!
│ Building: C:\Program Files\nodejs\node.exe D:\aaa\vue_h5\node_modules\.pnpm\node-gyp@8.4.1\node_modules\node-gyp\bin\node-gyp.js rebuild --verbos
│ gyp info it worked if it ends with ok
│ gyp verb cli [
│ gyp verb cli 'C:\\Program Files\\nodejs\\node.exe',
│ gyp verb cli 'D:\\aaa\\vue_h5\\node_modules\\.pnpm\\node-gyp@8.4.1\\node_modules\\node-gyp\\bin\\node-gyp.js',
│ gyp verb cli 'rebuild',
│ gyp verb cli '--verbose',
│ gyp verb cli '--libsass_ext=',
│ gyp verb cli '--libsass_cflags=',
│ gyp verb cli '--libsass_ldflags=',
│ gyp verb cli '--libsass_library='
│ gyp verb cli ]
│ gyp info using node-gyp@8.4.1
│ gyp info using node@14.21.2 | win32 | x64
│ gyp verb command rebuild []
│ gyp verb command clean []
│ gyp verb clean removing "build" directory
│ gyp verb command configure []
│ gyp verb find Python Python is not set from command line or npm configuration
│ gyp verb find Python Python is not set from environment variable PYTHON
│ gyp verb find Python checking if "python3" can be used
│ gyp verb find Python - executing "python3" to get executable path
│ gyp verb find Python - "python3" is not in PATH or produced an error
│ gyp verb find Python checking if "python" can be used
│ gyp verb find Python - executing "python" to get executable path
│ gyp verb find Python - "python" is not in PATH or produced an error
│ gyp verb find Python checking if Python is C:\Users\Administrator\AppData\Local\Programs\Python\Python39\python.exe
│ gyp verb find Python - executing "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\python.exe" to get version
│ gyp verb find Python - "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\python.exe" could not be run
│ gyp verb find Python checking if Python is C:\Program Files\Python39\python.exe
│ gyp verb find Python - executing "C:\Program Files\Python39\python.exe" to get version
│ gyp verb find Python - "C:\Program Files\Python39\python.exe" could not be run
│ gyp verb find Python checking if Python is C:\Users\Administrator\AppData\Local\Programs\Python\Python39-32\python.exe
│ gyp verb find Python - executing "C:\Users\Administrator\AppData\Local\Programs\Python\Python39-32\python.exe" to get version
│ gyp verb find Python - "C:\Users\Administrator\AppData\Local\Programs\Python\Python39-32\python.exe" could not be run
│ gyp verb find Python checking if Python is C:\Program Files\Python39-32\python.exe
│ gyp verb find Python - executing "C:\Program Files\Python39-32\python.exe" to get version
│ gyp verb find Python - "C:\Program Files\Python39-32\python.exe" could not be run
│ gyp verb find Python checking if Python is C:\Program Files (x86)\Python39-32\python.exe
│ gyp verb find Python - executing "C:\Program Files (x86)\Python39-32\python.exe" to get versi