解决node-gyp报错:KeyError 2017

本文解决了一个常见的node-gyp在使用VisualStudio2017时遇到的兼容性问题,通过设置环境变量GYP_MSVS_VERSION和GYP_MSVS_OVERRIDE_PATH,成功使node-gyp与VisualStudio2017兼容,确保了npm install的正常运行。

转载:https://blog.youkuaiyun.com/caoshiying/article/details/79564092

node-gyp因为不兼容Visual Studio 2017,所以报错:KeyError:2017,它的检测代码是node-gyp模块下一个名为 
MSVersion.py文件,第434行代码:

def SelectVisualStudioVersion(version='auto', allow_fallback=True):
  """Select which version of Visual Studio projects to generate.

  Arguments:
    version: Hook to allow caller to force a particular version (vs auto).
  Returns:
    An object representing a visual studio project format version.
  """
  # In auto mode, check environment variable for override.
  if version == 'auto':
    version = os.environ.get('GYP_MSVS_VERSION', 'auto')
  version_map = {
    'auto': ('14.0', '12.0', '10.0', '9.0', '8.0', '11.0'),
    '2005': ('8.0',),
    '2005e': ('8.0',),
    '2008': ('9.0',),
    '2008e': ('9.0',),
    '2010': ('10.0',),
    '2010e': ('10.0',),
    '2012': ('11.0',),
    '2012e': ('11.0',),
    '2013': ('12.0',),
    '2013e': ('12.0',),
    '2015': ('14.0',),
  }
  override_path = os.environ.get('GYP_MSVS_OVERRIDE_PATH')
  if override_path:
    msvs_version = os.environ.get('GYP_MSVS_VERSION')
    if not msvs_version:
      raise ValueError('GYP_MSVS_OVERRIDE_PATH requires GYP_MSVS_VERSION to be '
                       'set to a particular version (e.g. 2010e).')
    return _CreateVersion(msvs_version, override_path, sdk_based=True)
  version = str(version)
  versions = _DetectVisualStudioVersions(version_map[version], 'e' in version)
  if not versions:
    if not allow_fallback:
      raise ValueError('Could not locate Visual Studio installation.')
    if version == 'auto':
      # Default to 2005 if we couldn't find anything
      return _CreateVersion('2005', None)
    else:
      return _CreateVersion(version, None)
  return versions[0]
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43

从代码逻辑可以看出,它支持两个环境变量:GYP_MSVS_VERSION与GYP_MSVS_OVERRIDE_PATH。 
我在执行npm install之前首先运行:

set GYP_MSVS_VERSION=2015
set GYP_MSVS_OVERRIDE_PATH=C:\Program Files (x86)\Microsoft Visual Studio 14.0
  • 1
  • 2
  • 3

问题就解决了。 
最后提示:请确认当前机器安装了Visual Studio 2015。我的机器同时安装了两个版本。

C:\Users\Administrator\Desktop\水站2\node-backend-master>npm install npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm warn deprecated npmlog@5.0.1: This package is no longer supported. npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated are-we-there-yet@2.0.0: This package is no longer supported. npm warn deprecated gauge@3.0.2: This package is no longer supported. npm error code 1 npm error path C:\Users\Administrator\Desktop\水站2\node-backend-master\node_modules\bcrypt npm error command failed npm error command C:\Windows\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build npm error Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\Administrator\Desktop\水站2\node-backend-master\node_modules\bcrypt\lib\binding\napi-v3\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\Administrator\Desktop\水站2\node-backend-master\node_modules\bcrypt\lib\binding\napi-v3 --napi_version=10 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1) npm error node-pre-gyp info it worked if it ends with ok npm error node-pre-gyp info using node-pre-gyp@1.0.11 npm error node-pre-gyp info using node@22.16.0 | win32 | x64 npm error node-pre-gyp info check checked for "C:\Users\Administrator\Desktop\水站2\node-backend-master\node_modules\bcrypt\lib\binding\napi-v3\bcrypt_lib.node" (not found) npm error node-pre-gyp http GET https://github.com/kelektiv/node.bcrypt.js/releases/download/v5.1.1/bcrypt_lib-v5.1.1-napi-v3-win32-x64-unknown.tar.gz npm error node-pre-gyp ERR! install request to https://github.com/kelektiv/node.bcrypt.js/releases/download/v5.1.1/bcrypt_lib-v5.1.1-napi-v3-win32-x64-unknown.tar.gz failed, reason: connect ECONNREFUSED 127.0.0.1:443 npm error node-pre-gyp WARN Pre-built binaries not installable for bcrypt@5.1.1 and node@22.16.0 (node-v127 ABI, unknown) (falling back to source compile with node-gyp) npm error node-pre-gyp WARN Hit error request to https://github.com/kelektiv/node.bcrypt.js/releases/download/v5.1.1/bcrypt_lib-v5.1.1-napi-v3-win32-x64-unknown.tar.gz failed, reason: connect ECONNREFUSED 127.0.0.1:443 npm error gyp info it worked if it ends with ok npm error gyp info using node-gyp@11.0.0 npm error gyp info using node@22.16.0 | win32 | x64 npm error gyp info ok npm error gyp info it worked if it ends with ok npm error gyp info using node-gyp@11.0.0 npm error gyp info using node@22.16.0 | win32 | x64 npm error gyp ERR! find Python npm error gyp ERR! find Python Python is not set from command line or npm configuration npm error gyp ERR! find Python Python is not set from environment variable PYTHON npm error gyp ERR! find Python checking if the py launcher can be used to find Python 3 npm error gyp ERR! find Python - executable path is "" npm error gyp ERR! find Python - "" could not be run npm error gyp ERR! find Python checking if "python3" can be used npm error gyp ERR! find Python - executable path is "" npm error gyp ERR! find Python - "" could not be run npm error gyp ERR! find Python checking if "python" can be used npm error gyp ERR! find Python - executable path is "" npm error gyp ERR! find Python - "" could not be run npm error gyp ERR! find Python checking if Python is C:\Users\Administrator\AppData\Local\Programs\Python\Python311\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Program Files\Python311\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Program Files\Python311\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Users\Administrator\AppData\Local\Programs\Python\Python311-32\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Users\Administrator\AppData\Local\Programs\Python\Python311-32\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Program Files\Python311-32\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Program Files\Python311-32\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python311-32\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Program Files (x86)\Python311-32\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Users\Administrator\AppData\Local\Programs\Python\Python310\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Program Files\Python310\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Program Files\Python310\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Users\Administrator\AppData\Local\Programs\Python\Python310-32\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Users\Administrator\AppData\Local\Programs\Python\Python310-32\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Program Files\Python310-32\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Program Files\Python310-32\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python310-32\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Program Files (x86)\Python310-32\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Users\Administrator\AppData\Local\Programs\Python\Python39\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Program Files\Python39\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Program Files\Python39\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Users\Administrator\AppData\Local\Programs\Python\Python39-32\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Users\Administrator\AppData\Local\Programs\Python\Python39-32\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Program Files\Python39-32\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Program Files\Python39-32\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python39-32\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Program Files (x86)\Python39-32\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Users\Administrator\AppData\Local\Programs\Python\Python38\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Program Files\Python38\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Program Files\Python38\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Program Files\Python38-32\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Program Files\Python38-32\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python38-32\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Program Files (x86)\Python38-32\python.exe" could not be run npm error gyp ERR! find Python npm error gyp ERR! find Python ********************************************************** npm error gyp ERR! find Python You need to install the latest version of Python. npm error gyp ERR! find Python Node-gyp should be able to find and use Python. If not, npm error gyp ERR! find Python you can try one of the following options: npm error gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe" npm error gyp ERR! find Python (accepted by both node-gyp and npm) npm error gyp ERR! find Python - Set the environment variable PYTHON npm error gyp ERR! find Python - Set the npm configuration variable python: npm error gyp ERR! find Python npm config set python "C:\Path\To\python.exe" npm error gyp ERR! find Python For more information consult the documentation at: npm error gyp ERR! find Python https://github.com/nodejs/node-gyp#installation npm error gyp ERR! find Python ********************************************************** npm error gyp ERR! find Python npm error gyp ERR! configure error npm error gyp ERR! stack Error: Could not find any Python installation to use npm error gyp ERR! stack at PythonFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:306:11) npm error gyp ERR! stack at PythonFinder.findPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:164:17) npm error gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:105:5) npm error gyp ERR! stack at async configure (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:27:18) npm error gyp ERR! stack at async run (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js:81:18) npm error gyp ERR! System Windows_NT 10.0.19045 npm error gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\Administrator\\Desktop\\水站2\\node-backend-master\\node_modules\\bcrypt\\lib\\binding\\napi-v3\\bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=C:\\Users\\Administrator\\Desktop\\水站2\\node-backend-master\\node_modules\\bcrypt\\lib\\binding\\napi-v3" "--napi_version=10" "--node_abi_napi=napi" "--napi_build_version=3" "--node_napi_label=napi-v3" npm error gyp ERR! cwd C:\Users\Administrator\Desktop\水站2\node-backend-master\node_modules\bcrypt npm error gyp ERR! node -v v22.16.0 npm error gyp ERR! node-gyp -v v11.0.0 npm error gyp ERR! not ok npm error node-pre-gyp ERR! build error npm error node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\Administrator\Desktop\水站2\node-backend-master\node_modules\bcrypt\lib\binding\napi-v3\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\Administrator\Desktop\水站2\node-backend-master\node_modules\bcrypt\lib\binding\napi-v3 --napi_version=10 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1) npm error node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\Administrator\Desktop\水站2\node-backend-master\node_modules\@mapbox\node-pre-gyp\lib\util\compile.js:89:23) npm error node-pre-gyp ERR! stack at ChildProcess.emit (node:events:518:28) npm error node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1101:16) npm error node-pre-gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:304:5) npm error node-pre-gyp ERR! System Windows_NT 10.0.19045 npm error node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Administrator\\Desktop\\水站2\\node-backend-master\\node_modules\\@mapbox\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" npm error node-pre-gyp ERR! cwd C:\Users\Administrator\Desktop\水站2\node-backend-master\node_modules\bcrypt npm error node-pre-gyp ERR! node -v v22.16.0 npm error node-pre-gyp ERR! node-pre-gyp -v v1.0.11 npm error node-pre-gyp ERR! not ok npm error A complete log of this run can be found in: C:\Users\Administrator\AppData\Local\npm-cache\_logs\2025-06-09T04_56_26_267Z-debug-0.log
06-10
npm ERR! code 1 npm ERR! path E:\code\bigDataRisk\hnnd-risk-management-vue\node_modules\node-sass npm ERR! command failed npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node scripts/build.js npm ERR! Building: D:\nodejs\node.exe E:\code\bigDataRisk\hnnd-risk-management-vue\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libs npm ERR! gyp info it worked if it ends with ok npm ERR! gyp verb cli [ npm ERR! gyp verb cli 'D:\\nodejs\\node.exe', npm ERR! gyp verb cli 'E:\\code\\bigDataRisk\\hnnd-risk-management-vue\\node_modules\\node-gyp\\bin\\node-gyp.js', npm ERR! gyp verb cli 'rebuild', npm ERR! gyp verb cli '--verbose', npm ERR! gyp verb cli '--libsass_ext=', npm ERR! gyp verb cli '--libsass_cflags=', npm ERR! gyp verb cli '--libsass_ldflags=', npm ERR! gyp verb cli '--libsass_library=' npm ERR! gyp verb cli ] npm ERR! gyp info using node-gyp@3.8.0 npm ERR! gyp info using node@16.20.2 | win32 | x64 npm ERR! gyp verb command rebuild [] npm ERR! gyp verb command clean [] npm ERR! gyp verb clean removing "build" directory npm ERR! gyp verb command configure [] npm ERR! gyp verb check python checking for Python executable "‪D:\Python27\python.exe" in the PATH npm ERR! gyp verb `which` failed Error: not found: ‪D:\Python27\python.exe npm ERR! gyp verb `which` failed at getNotFoundError (E:\code\bigDataRisk\hnnd-risk-management-vue\node_modules\which\which.js:13:12) npm ERR! gyp verb `which` failed at F (E:\code\bigDataRisk\hnnd-risk-management-vue\node_modules\which\which.js:68:19) npm ERR! gyp verb `which` failed at E (E:\code\bigDataRisk\hnnd-risk-management-vue\node_modules\which\which.js:80:29) npm ERR! gyp verb `which` failed at E:\code\bigDataRisk\hnnd-risk-management-vue\node_modules\which\which.js:89:16 npm ERR! gyp verb `which` failed at E:\code\bigDataRisk\hnnd-risk-management-vue\node_modules\isexe\index.js:42:5 npm ERR! gyp verb `which` failed at E:\code\bigDataRisk\hnnd-risk-management-vue\node_modules\isexe\windows.js:36:5 npm ERR! gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:202:21) npm ERR! gyp verb `which` failed ‪D:\Python27\python.exe Error: not found: ‪D:\Python27\python.exe npm ERR! gyp verb `which` failed at getNotFoundError (E:\code\bigDataRisk\hnnd-risk-management-vue\node_modules\which\which.js:13:12) npm ERR! gyp verb `which` failed at F (E:\code\bigDataRisk\hnnd-risk-management-vue\node_modules\which\which.js:68:19) npm ERR! gyp verb `which` failed at E (E:\code\bigDataRisk\hnnd-risk-management-vue\node_modules\which\which.js:80:29) npm ERR! gyp verb `which` failed at E:\code\bigDataRisk\hnnd-risk-management-vue\node_modules\which\which.js:89:16 npm ERR! gyp verb `which` failed at E:\code\bigDataRisk\hnnd-risk-management-vue\node_modules\isexe\index.js:42:5 npm ERR! gyp verb `which` failed at E:\code\bigDataRisk\hnnd-risk-management-vue\node_modules\isexe\windows.js:36:5 npm ERR! gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:202:21) { npm ERR! gyp verb `which` failed code: 'ENOENT' npm ERR! gyp verb `which` failed } npm ERR! gyp verb could not find "‪D:\Python27\python.exe". checking python launcher npm ERR! gyp verb check python launcher python executable found: "D:\\Python27\\python.exe" npm ERR! gyp verb check python version `D:\Python27\python.exe -c "import sys; print "2.7.18 npm ERR! gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j npm ERR! gyp verb get node dir no --target version specified, falling back to host node version: 16.20.2 npm ERR! gyp verb command install [ '16.20.2' ] npm ERR! gyp verb install input version string "16.20.2" npm ERR! gyp verb install installing version: 16.20.2 npm ERR! gyp verb install --ensure was passed, so won't reinstall if already installed npm ERR! gyp verb install version is already installed, need to check "installVersion" npm ERR! gyp verb got "installVersion" 9 npm ERR! gyp verb needs "installVersion" 9 npm ERR! gyp verb install version is good npm ERR! gyp verb get node dir target node version installed: 16.20.2 npm ERR! gyp verb build dir attempting to create "build" dir: E:\code\bigDataRisk\hnnd-risk-management-vue\node_modules\node-sass\build npm ERR! gyp verb build dir "build" dir needed to be created? E:\code\bigDataRisk\hnnd-risk-management-vue\node_modules\node-sass\build npm ERR! gyp verb build/config.gypi creating config file npm ERR! gyp verb build/config.gypi writing out config file: E:\code\bigDataRisk\hnnd-risk-management-vue\node_modules\node-sass\build\config.gypi npm ERR! (node:5732) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only. npm ERR! (Use `node --trace-deprecation ...` to show where the warning was created) npm ERR! gyp verb config.gypi checking for gypi file: E:\code\bigDataRisk\hnnd-risk-management-vue\node_modules\node-sass\config.gypi npm ERR! gyp verb common.gypi checking for gypi file: E:\code\bigDataRisk\hnnd-risk-management-vue\node_modules\node-sass\common.gypi npm ERR! gyp verb gyp gyp format was not specified; forcing "msvs" npm ERR! gyp info spawn D:\Python27\python.exe npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args 'E:\\code\\bigDataRisk\\hnnd-risk-management-vue\\node_modules\\node-gyp\\gyp\\gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'msvs', npm ERR! gyp info spawn args '-G', npm ERR! gyp info spawn args 'msvs_version=2022', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args 'E:\\code\\bigDataRisk\\hnnd-risk-management-vue\\node_modules\\node-sass\\build\\config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args 'E:\\code\\bigDataRisk\\hnnd-risk-management-vue\\node_modules\\node-gyp\\addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args 'C:\\Users\\huxio\\.node-gyp\\16.20.2\\include\\node\\common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=C:\\Users\\huxio\\.node-gyp\\16.20.2', npm ERR! gyp info spawn args '-Dnode_gyp_dir=E:\\code\\bigDataRisk\\hnnd-risk-management-vue\\node_modules\\node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=C:\\Users\\huxio\\.node-gyp\\16.20.2\\<(target_arch)\\node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=E:\\code\\bigDataRisk\\hnnd-risk-management-vue\\node_modules\\node-sass', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'E:\\code\\bigDataRisk\\hnnd-risk-management-vue\\node_modules\\node-sass\\build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! Traceback (most recent call last): npm ERR! File "E:\code\bigDataRisk\hnnd-risk-management-vue\node_modules\node-gyp\gyp\gyp_main.py", line 16, in <module> npm ERR! sys.exit(gyp.script_main()) npm ERR! File "E:\code\bigDataRisk\hnnd-risk-management-vue\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 545, in script_main npm ERR! return main(sys.argv[1:]) npm ERR! File "E:\code\bigDataRisk\hnnd-risk-management-vue\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 538, in main npm ERR! return gyp_main(args) npm ERR! File "E:\code\bigDataRisk\hnnd-risk-management-vue\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 514, in gyp_main npm ERR! options.duplicate_basename_check) npm ERR! File "E:\code\bigDataRisk\hnnd-risk-management-vue\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 98, in Load npm ERR! generator.CalculateVariables(default_variables, params) npm ERR! File "E:\code\bigDataRisk\hnnd-risk-management-vue\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 1916, in CalculateVariables npm ERR! generator_flags.get('msvs_version', 'auto')) npm ERR! File "E:\code\bigDataRisk\hnnd-risk-management-vue\node_modules\node-gyp\gyp\pylib\gyp\MSVSVersion.py", line 434, in SelectVisualStudioVersion npm ERR! versions = _DetectVisualStudioVersions(version_map[version], 'e' in version) npm ERR! KeyError: '2022' npm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1 npm ERR! gyp ERR! stack at ChildProcess.onCpExit (E:\code\bigDataRisk\hnnd-risk-management-vue\node_modules\node-gyp\lib\configure.js:345:16) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12) npm ERR! gyp ERR! System Windows_NT 10.0.26100 npm ERR! gyp ERR! command "D:\\nodejs\\node.exe" "E:\\code\\bigDataRisk\\hnnd-risk-management-vue\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbos y=" npm ERR! gyp ERR! cwd E:\code\bigDataRisk\hnnd-risk-management-vue\node_modules\node-sass npm ERR! gyp ERR! node -v v16.20.2 npm ERR! gyp ERR! node-gyp -v v3.8.0 npm ERR! gyp ERR! not ok npm ERR! Build failed with error code: 1 npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\huxio\AppData\Local\npm-cache\_logs\2025-10-11T06_52_31_608Z-debug-0.log
10-12
PS D:\All-Project\pointlion-ui\pointlion-ui> npm i npm warn ERESOLVE overriding peer dependency npm warn EBADENGINE Unsupported engine { npm warn EBADENGINE package: '@achrinza/node-ipc@9.2.2', npm warn EBADENGINE required: { node: '8 || 10 || 12 || 14 || 16 || 17' }, npm warn EBADENGINE current: { node: 'v18.20.8', npm: '10.8.2' } npm warn EBADENGINE } npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm warn deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs npm warn deprecated @babel/plugin-proposal-class-properties@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead. npm warn deprecated lodash.isequal@4.5.0: This package is deprecated. Use require('node:util').isDeepStrictEqual instead. npm warn deprecated move-concurrently@1.0.1: This package is no longer supported. npm warn deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility npm warn deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated npm warn deprecated figgy-pudding@3.5.2: This module is no longer supported. npm warn deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 npm warn deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained npm warn deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm warn deprecated eslint-loader@2.2.1: This loader has been deprecated. Please use eslint-webpack-plugin npm warn deprecated consolidate@0.15.1: Please upgrade to consolidate v1.0.0+ as it has been modernized with several long-awaited fixes implemented. Maintenance is supported by Forward Email at https://forwardemail.net ; follow/watch https://github.com/ladjs/consolidate for updates and release changelog npm warn deprecated copy-concurrently@1.0.5: This package is no longer supported. npm warn deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm warn deprecated har-validator@5.1.5: this library is no longer supported npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated abab@2.0.6: Use your platform's native atob() and btoa() methods instead npm warn deprecated q@1.5.1: You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other. npm warn deprecated npm warn deprecated (For a CapTP with native promises, see @endo/eventual-send and @endo/captp) npm warn deprecated domexception@1.0.1: Use your platform's native DOMException instead npm warn deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated npm warn deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm warn deprecated w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin. npm warn deprecated left-pad@1.3.0: use String.prototype.padStart() npm warn deprecated microargs@1.1.2: This project has been renamed to @pawelgalazka/cli-args. Install using @pawelgalazka/cli-args instead npm warn deprecated html-webpack-plugin@3.2.0: 3.x is no longer supported npm warn deprecated html-webpack-plugin@3.2.0: 3.x is no longer supported npm warn deprecated fs-write-stream-atomic@1.0.10: This package is no longer supported. npm warn deprecated sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added npm warn deprecated microcli@1.3.3: This project has been renamed to @pawelgalazka/cli . Install using @pawelgalazka/cli instead npm warn deprecated @hapi/address@2.1.4: Moved to 'npm install @sideway/address' npm warn deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates. npm warn deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm warn deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm warn deprecated runjs@4.4.2: This project has been renamed to 'tasksfile'. Install using 'npm install tasksfile' instead. npm warn deprecated webpack-chain@6.5.1: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm warn deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained npm warn deprecated @hapi/joi@15.1.1: Switch to 'npm install joi' npm warn deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x. npm warn deprecated vue@2.7.16: Vue 2 has reached EOL and is no longer actively maintained. See https://v2.vuejs.org/eol/ for more details. npm warn deprecated highlight.js@9.18.5: Support has ended for 9.x series. Upgrade to @latest npm warn deprecated eslint@7.15.0: This version is no longer supported. Please see https://eslint.org/version-support for other options. npm warn deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js. npm warn deprecated core-js@3.19.1: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js. npm warn cleanup Failed to remove some directories [ npm warn cleanup [ npm warn cleanup 'D:\\All-Project\\pointlion-ui\\pointlion-ui\\node_modules\\microcli', npm warn cleanup [Error: EPERM: operation not permitted, rmdir 'D:\All-Project\pointlion-ui\pointlion-ui\node_modules\microcli\node_modules'] { npm warn cleanup errno: -4048, npm warn cleanup code: 'EPERM', npm warn cleanup syscall: 'rmdir', npm warn cleanup path: 'D:\\All-Project\\pointlion-ui\\pointlion-ui\\node_modules\\microcli\\node_modules' npm warn cleanup } npm warn cleanup ], npm warn cleanup [ npm warn cleanup 'D:\\All-Project\\pointlion-ui\\pointlion-ui\\node_modules', npm warn cleanup [Error: EPERM: operation not permitted, rmdir 'D:\All-Project\pointlion-ui\pointlion-ui\node_modules\@vue'] { npm warn cleanup errno: -4048, npm warn cleanup code: 'EPERM', npm warn cleanup syscall: 'rmdir', npm warn cleanup path: 'D:\\All-Project\\pointlion-ui\\pointlion-ui\\node_modules\\@vue' npm warn cleanup } npm warn cleanup ], npm warn cleanup [ npm warn cleanup 'D:\\All-Project\\pointlion-ui\\pointlion-ui\\node_modules\\browser-resolve', npm warn cleanup [Error: EPERM: operation not permitted, rmdir 'D:\All-Project\pointlion-ui\pointlion-ui\node_modules\browser-resolve\node_modules\resolve\test\resolver\punycode'] { npm warn cleanup errno: -4048, npm warn cleanup code: 'EPERM', npm warn cleanup syscall: 'rmdir', npm warn cleanup path: 'D:\\All-Project\\pointlion-ui\\pointlion-ui\\node_modules\\browser-resolve\\node_modules\\resolve\\test\\resolver\\punycode' npm warn cleanup } npm warn cleanup ] npm warn cleanup ] npm error code 1 npm error path D:\All-Project\pointlion-ui\pointlion-ui\node_modules\deasync npm error command failed npm error command C:\WINDOWS\system32\cmd.exe /d /s /c node ./build.js npm error gyp info it worked if it ends with ok npm error gyp info using node-gyp@10.1.0 npm error gyp info using node@18.20.8 | win32 | ia32 npm error gyp ERR! find Python npm error gyp ERR! find Python checking Python explicitly set from command line or npm configuration npm error gyp ERR! find Python - "--python=" or "npm config get python" is "C:\Path\To\python.exe" npm error gyp ERR! find Python - executable path is "" npm error gyp ERR! find Python - "" could not be run npm error gyp ERR! find Python Python is not set from environment variable PYTHON npm error gyp ERR! find Python checking if the py launcher can be used to find Python 3 npm error gyp ERR! find Python - executable path is "" npm error gyp ERR! find Python - "" could not be run npm error gyp ERR! find Python checking if "python3" can be used npm error gyp ERR! find Python - executable path is "" npm error gyp ERR! find Python - "" could not be run npm error gyp ERR! find Python checking if "python" can be used npm error gyp ERR! find Python - executable path is "" npm error gyp ERR! find Python - "" could not be run npm error gyp ERR! find Python checking if Python is C:\Users\16976\AppData\Local\Programs\Python\Python311\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Users\16976\AppData\Local\Programs\Python\Python311\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Program Files\Python311\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Program Files\Python311\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Users\16976\AppData\Local\Programs\Python\Python311-32\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Users\16976\AppData\Local\Programs\Python\Python311-32\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Program Files\Python311-32\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Program Files\Python311-32\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python311-32\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Program Files (x86)\Python311-32\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Users\16976\AppData\Local\Programs\Python\Python310\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Users\16976\AppData\Local\Programs\Python\Python310\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Program Files\Python310\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Program Files\Python310\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Users\16976\AppData\Local\Programs\Python\Python310-32\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Users\16976\AppData\Local\Programs\Python\Python310-32\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Program Files\Python310-32\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Program Files\Python310-32\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python310-32\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Program Files (x86)\Python310-32\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Users\16976\AppData\Local\Programs\Python\Python39\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Users\16976\AppData\Local\Programs\Python\Python39\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Program Files\Python39\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Program Files\Python39\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Users\16976\AppData\Local\Programs\Python\Python39-32\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Users\16976\AppData\Local\Programs\Python\Python39-32\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Program Files\Python39-32\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Program Files\Python39-32\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python39-32\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Program Files (x86)\Python39-32\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Users\16976\AppData\Local\Programs\Python\Python38\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Users\16976\AppData\Local\Programs\Python\Python38\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Program Files\Python38\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Program Files\Python38\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Users\16976\AppData\Local\Programs\Python\Python38-32\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Users\16976\AppData\Local\Programs\Python\Python38-32\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Program Files\Python38-32\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Program Files\Python38-32\python.exe" could not be run npm error gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python38-32\python.exe npm error gyp ERR! find Python - version is "" npm error gyp ERR! find Python - version is - should be >=3.6.0 npm error gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm error gyp ERR! find Python - "C:\Program Files (x86)\Python38-32\python.exe" could not be run npm error gyp ERR! find Python npm error gyp ERR! find Python ********************************************************** npm error gyp ERR! find Python You need to install the latest version of Python. npm error gyp ERR! find Python Node-gyp should be able to find and use Python. If not, npm error gyp ERR! find Python you can try one of the following options: npm error gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe" npm error gyp ERR! find Python (accepted by both node-gyp and npm) npm error gyp ERR! find Python - Set the environment variable PYTHON npm error gyp ERR! find Python - Set the npm configuration variable python: npm error gyp ERR! find Python npm config set python "C:\Path\To\python.exe" npm error gyp ERR! find Python For more information consult the documentation at: npm error gyp ERR! find Python https://github.com/nodejs/node-gyp#installation npm error gyp ERR! find Python ********************************************************** npm error gyp ERR! find Python npm error gyp ERR! configure error npm error gyp ERR! stack Error: Could not find any Python installation to use npm error gyp ERR! stack at PythonFinder.fail (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:306:11) npm error gyp ERR! stack at PythonFinder.findPython (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:164:17) npm error gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:95:5) npm error gyp ERR! stack at async configure (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:27:18)npm error gyp ERR! stack at async run (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js:81:18) npm error gyp ERR! System Windows_NT 10.0.22631 npm error gyp ERR! command "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" npm error gyp ERR! cwd D:\All-Project\pointlion-ui\pointlion-ui\node_modules\deasync npm error gyp ERR! node -v v18.20.8 npm error gyp ERR! node-gyp -v v10.1.0 npm error gyp ERR! not ok npm error Build failed npm error A complete log of this run can be found in: C:\Users\16976\AppData\Local\npm-cache\_logs\2025-10-27T06_31_09_631Z-debug-0.log PS D:\All-Project\pointlion-ui\pointlion-ui> npm run dev > jscm@3.8.3 dev > vue-cli-service serve 'vue-cli-service' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 PS D:\All-Project\pointlion-ui\pointlion-ui>
最新发布
10-28
PS D:\All-Project\pointlion-ui\pointlion-ui> npm install --legacy-peer-deps npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '@achrinza/node-ipc@9.2.2', npm WARN EBADENGINE required: { node: '8 || 10 || 12 || 14 || 16 || 17' }, npm WARN EBADENGINE current: { node: 'v20.13.1', npm: '10.5.2' } npm WARN EBADENGINE } npm WARN deprecated @types/minimatch@6.0.0: This is a stub types definition. minimatch provides its own type definitions, so you do not need this installed. npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs npm WARN deprecated @babel/plugin-proposal-class-properties@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead. npm WARN deprecated lodash.isequal@4.5.0: This package is deprecated. Use require('node:util').isDeepStrictEqual instead. npm WARN deprecated move-concurrently@1.0.1: This package is no longer supported. npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated npm WARN deprecated figgy-pudding@3.5.2: This module is no longer supported. npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 npm WARN deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained npm WARN deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained npm WARN deprecated eslint-loader@2.2.1: This loader has been deprecated. Please use eslint-webpack-plugin npm WARN deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm WARN deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm WARN deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm WARN deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm WARN deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm WARN deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm WARN deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm WARN deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm WARN deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm WARN deprecated consolidate@0.15.1: Please upgrade to consolidate v1.0.0+ as it has been modernized with several long-awaited fixes implemented. Maintenance is supported by Forward Email at https://forwardemail.net ; follow/watch https://github.com/ladjs/consolidate for updates and release changelog npm WARN deprecated copy-concurrently@1.0.5: This package is no longer supported. npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported npm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm WARN deprecated abab@2.0.6: Use your platform's native atob() and btoa() methods instead npm WARN deprecated q@1.5.1: You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other. npm WARN deprecated npm WARN deprecated (For a CapTP with native promises, see @endo/eventual-send and @endo/captp) npm WARN deprecated domexception@1.0.1: Use your platform's native DOMException instead npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart() npm WARN deprecated w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin. npm WARN deprecated microargs@1.1.2: This project has been renamed to @pawelgalazka/cli-args. Install using @pawelgalazka/cli-args instead npm WARN deprecated html-webpack-plugin@3.2.0: 3.x is no longer supported npm WARN deprecated fs-write-stream-atomic@1.0.10: This package is no longer supported. npm WARN deprecated sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added npm WARN deprecated microcli@1.3.3: This project has been renamed to @pawelgalazka/cli . Install using @pawelgalazka/cli instead npm WARN deprecated @hapi/address@2.1.4: Moved to 'npm install @sideway/address' npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates. npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated runjs@4.4.2: This project has been renamed to 'tasksfile'. Install using 'npm install tasksfile' instead. npm WARN deprecated webpack-chain@6.5.1: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained npm WARN deprecated @hapi/joi@15.1.1: Switch to 'npm install joi' npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x. npm WARN deprecated vue@2.7.16: Vue 2 has reached EOL and is no longer actively maintained. See https://v2.vuejs.org/eol/ for more details. npm WARN deprecated highlight.js@9.18.5: Support has ended for 9.x series. Upgrade to @latest npm WARN deprecated eslint@7.15.0: This version is no longer supported. Please see https://eslint.org/version-support for other options. npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js. npm WARN deprecated core-js@3.19.1: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js. npm ERR! code 1 npm ERR! path D:\All-Project\pointlion-ui\pointlion-ui\node_modules\deasync npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node ./build.js npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@10.1.0 npm ERR! gyp info using node@20.13.1 | win32 | ia32 npm ERR! gyp ERR! find Python npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON npm ERR! gyp ERR! find Python checking if the py launcher can be used to find Python 3 npm ERR! gyp ERR! find Python - executable path is "" npm ERR! gyp ERR! find Python - "" could not be run npm ERR! gyp ERR! find Python checking if "python3" can be used npm ERR! gyp ERR! find Python - executable path is "" npm ERR! gyp ERR! find Python - "" could not be run npm ERR! gyp ERR! find Python checking if "python" can be used npm ERR! gyp ERR! find Python - executable path is "" npm ERR! gyp ERR! find Python - "" could not be run npm ERR! gyp ERR! find Python checking if Python is C:\Users\16976\AppData\Local\Programs\Python\Python311\python.exe npm ERR! gyp ERR! find Python - version is "" npm ERR! gyp ERR! find Python - version is - should be >=3.6.0 npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm ERR! gyp ERR! find Python - "C:\Users\16976\AppData\Local\Programs\Python\Python311\python.exe" could not be run npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python311\python.exe npm ERR! gyp ERR! find Python - version is "" npm ERR! gyp ERR! find Python - version is - should be >=3.6.0 npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm ERR! gyp ERR! find Python - "C:\Program Files\Python311\python.exe" could not be run npm ERR! gyp ERR! find Python checking if Python is C:\Users\16976\AppData\Local\Programs\Python\Python311-32\python.exe npm ERR! gyp ERR! find Python - version is "" npm ERR! gyp ERR! find Python - version is - should be >=3.6.0 npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm ERR! gyp ERR! find Python - "C:\Users\16976\AppData\Local\Programs\Python\Python311-32\python.exe" could not be run npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python311-32\python.exe npm ERR! gyp ERR! find Python - version is "" npm ERR! gyp ERR! find Python - version is - should be >=3.6.0 npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm ERR! gyp ERR! find Python - "C:\Program Files\Python311-32\python.exe" could not be run npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python311-32\python.exe npm ERR! gyp ERR! find Python - version is "" npm ERR! gyp ERR! find Python - version is - should be >=3.6.0 npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python311-32\python.exe" could not be run npm ERR! gyp ERR! find Python checking if Python is C:\Users\16976\AppData\Local\Programs\Python\Python310\python.exe npm ERR! gyp ERR! find Python - version is "" npm ERR! gyp ERR! find Python - version is - should be >=3.6.0 npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm ERR! gyp ERR! find Python - "C:\Users\16976\AppData\Local\Programs\Python\Python310\python.exe" could not be run npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python310\python.exe npm ERR! gyp ERR! find Python - version is "" npm ERR! gyp ERR! find Python - version is - should be >=3.6.0 npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm ERR! gyp ERR! find Python - "C:\Program Files\Python310\python.exe" could not be run npm ERR! gyp ERR! find Python checking if Python is C:\Users\16976\AppData\Local\Programs\Python\Python310-32\python.exe npm ERR! gyp ERR! find Python - version is "" npm ERR! gyp ERR! find Python - version is - should be >=3.6.0 npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm ERR! gyp ERR! find Python - "C:\Users\16976\AppData\Local\Programs\Python\Python310-32\python.exe" could not be run npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python310-32\python.exe npm ERR! gyp ERR! find Python - version is "" npm ERR! gyp ERR! find Python - version is - should be >=3.6.0 npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm ERR! gyp ERR! find Python - "C:\Program Files\Python310-32\python.exe" could not be run npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python310-32\python.exe npm ERR! gyp ERR! find Python - version is "" npm ERR! gyp ERR! find Python - version is - should be >=3.6.0 npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python310-32\python.exe" could not be run npm ERR! gyp ERR! find Python checking if Python is C:\Users\16976\AppData\Local\Programs\Python\Python39\python.exe npm ERR! gyp ERR! find Python - version is "" npm ERR! gyp ERR! find Python - version is - should be >=3.6.0 npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm ERR! gyp ERR! find Python - "C:\Users\16976\AppData\Local\Programs\Python\Python39\python.exe" could not be run npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python39\python.exe npm ERR! gyp ERR! find Python - version is "" npm ERR! gyp ERR! find Python - version is - should be >=3.6.0 npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm ERR! gyp ERR! find Python - "C:\Program Files\Python39\python.exe" could not be run npm ERR! gyp ERR! find Python checking if Python is C:\Users\16976\AppData\Local\Programs\Python\Python39-32\python.exe npm ERR! gyp ERR! find Python - version is "" npm ERR! gyp ERR! find Python - version is - should be >=3.6.0 npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm ERR! gyp ERR! find Python - "C:\Users\16976\AppData\Local\Programs\Python\Python39-32\python.exe" could not be run npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python39-32\python.exe npm ERR! gyp ERR! find Python - version is "" npm ERR! gyp ERR! find Python - version is - should be >=3.6.0 npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm ERR! gyp ERR! find Python - "C:\Program Files\Python39-32\python.exe" could not be run npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python39-32\python.exe npm ERR! gyp ERR! find Python - version is "" npm ERR! gyp ERR! find Python - version is - should be >=3.6.0 npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python39-32\python.exe" could not be run npm ERR! gyp ERR! find Python checking if Python is C:\Users\16976\AppData\Local\Programs\Python\Python38\python.exe npm ERR! gyp ERR! find Python - version is "" npm ERR! gyp ERR! find Python - version is - should be >=3.6.0 npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm ERR! gyp ERR! find Python - "C:\Users\16976\AppData\Local\Programs\Python\Python38\python.exe" could not be run npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python38\python.exe npm ERR! gyp ERR! find Python - version is "" npm ERR! gyp ERR! find Python - version is - should be >=3.6.0 npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm ERR! gyp ERR! find Python - "C:\Program Files\Python38\python.exe" could not be run npm ERR! gyp ERR! find Python checking if Python is C:\Users\16976\AppData\Local\Programs\Python\Python38-32\python.exe npm ERR! gyp ERR! find Python - version is "" npm ERR! gyp ERR! find Python - version is - should be >=3.6.0 npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm ERR! gyp ERR! find Python - "C:\Users\16976\AppData\Local\Programs\Python\Python38-32\python.exe" could not be run npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python38-32\python.exe npm ERR! gyp ERR! find Python - version is "" npm ERR! gyp ERR! find Python - version is - should be >=3.6.0 npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm ERR! gyp ERR! find Python - "C:\Program Files\Python38-32\python.exe" could not be run npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python38-32\python.exe npm ERR! gyp ERR! find Python - version is "" npm ERR! gyp ERR! find Python - version is - should be >=3.6.0 npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python38-32\python.exe" could not be run npm ERR! gyp ERR! find Python npm ERR! gyp ERR! find Python ********************************************************** npm ERR! gyp ERR! find Python You need to install the latest version of Python. npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not, npm ERR! gyp ERR! find Python you can try one of the following options: npm ERR! gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe" npm ERR! gyp ERR! find Python (accepted by both node-gyp and npm) npm ERR! gyp ERR! find Python - Set the environment variable PYTHON npm ERR! gyp ERR! find Python - Set the npm configuration variable python: npm ERR! gyp ERR! find Python npm config set python "C:\Path\To\python.exe" npm ERR! gyp ERR! find Python For more information consult the documentation at: npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation npm ERR! gyp ERR! find Python ********************************************************** npm ERR! gyp ERR! find Python npm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error: Could not find any Python installation to use npm ERR! gyp ERR! stack at PythonFinder.fail (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:306:11) npm ERR! gyp ERR! stack at PythonFinder.findPython (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:164:17) npm ERR! gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:95:5) npm ERR! gyp ERR! stack at async configure (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:27:18) npm ERR! gyp ERR! stack at async run (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js:81:18) npm ERR! gyp ERR! System Windows_NT 10.0.22631 npm ERR! gyp ERR! command "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd D:\All-Project\pointlion-ui\pointlion-ui\node_modules\deasync npm ERR! gyp ERR! node -v v20.13.1 npm ERR! gyp ERR! node-gyp -v v10.1.0 npm ERR! gyp ERR! not ok npm ERR! Build failed npm ERR! A complete log of this run can be found in: C:\Users\16976\AppData\Local\npm-cache\_logs\2025-10-27T05_42_07_835Z-debug-0.log PS D:\All-Project\pointlion-ui\pointlion-ui> PS D:\All-Project\pointlion-ui\pointlion-ui>
10-28
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值