Skip to content

node-gyp rebuild error #2593

@Squitch1

Description

@Squitch1

Hello When i tried to install and rebuild some dependencies, I have and error, I have already tried to reinstall python and nodejs but do nothings

  • Node Version: npm 8.3.0 node 16.13.2
  • Platform: Windows 11 22000.438
  • Compiler: msvc
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup   [
npm WARN cleanup     'C:\\Users\\clement\\Documents\\dev\\project\\Tess\\node_modules\\glasstron',
npm WARN cleanup     [Error: EBUSY: resource busy or locked, rmdir 'C:\Users\clement\Documents\dev\project\Tess\node_modules\glasstron'] {
npm WARN cleanup       errno: -4082,
npm WARN cleanup       code: 'EBUSY',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: 'C:\\Users\\clement\\Documents\\dev\\project\\Tess\\node_modules\\glasstron'
npm WARN cleanup     }
npm WARN cleanup   ]
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path C:\Users\clement\Documents\dev\project\Tess\node_modules\node-pty
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node scripts/install.js
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@8.2.0
npm ERR! gyp info using node@16.13.2 | win32 | x64
npm ERR! gyp info find Python using Python version 3.10.2 found at "C:\Python310\python.exe"
npm ERR! gyp http GET https://nodejs.org/download/release/v16.13.2/node-v16.13.2-headers.tar.gz
npm ERR! gyp http 200 https://nodejs.org/download/release/v16.13.2/node-v16.13.2-headers.tar.gz
npm ERR! gyp http GET https://nodejs.org/download/release/v16.13.2/SHASUMS256.txt
npm ERR! gyp http GET https://nodejs.org/download/release/v16.13.2/win-x86/node.lib
npm ERR! gyp http GET https://nodejs.org/download/release/v16.13.2/win-x64/node.lib
npm ERR! gyp http GET https://nodejs.org/download/release/v16.13.2/win-arm64/node.lib
npm ERR! gyp http 200 https://nodejs.org/download/release/v16.13.2/SHASUMS256.txt
npm ERR! gyp http 200 https://nodejs.org/download/release/v16.13.2/win-x64/node.lib
npm ERR! gyp http 404 https://nodejs.org/download/release/v16.13.2/win-arm64/node.lib
npm ERR! gyp http 200 https://nodejs.org/download/release/v16.13.2/win-x86/node.lib
npm ERR! gyp info find VS using VS2019 (16.11.32106.194) found at:
npm ERR! gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"
npm ERR! gyp info find VS run with --verbose for detailed information
npm ERR! gyp info spawn C:\Python310\python.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   'C:\\Users\\clement\\Documents\\dev\\project\\Tess\\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   '-I',
npm ERR! gyp info spawn args   'C:\\Users\\clement\\Documents\\dev\\project\\Tess\\node_modules\\node-pty\\build\\config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   'C:\\Users\\clement\\Documents\\dev\\project\\Tess\\node_modules\\node-gyp\\addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   'C:\\Users\\clement\\AppData\\Local\\node-gyp\\Cache\\16.13.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\\clement\\AppData\\Local\\node-gyp\\Cache\\16.13.2',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\clement\\Documents\\dev\\project\\Tess\\node_modules\\node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\clement\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\16.13.2\\\\<(target_arch)\\\\node.lib',        
npm ERR! gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\clement\\Documents\\dev\\project\\Tess\\node_modules\\node-pty',
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   'C:\\Users\\clement\\Documents\\dev\\project\\Tess\\node_modules\\node-pty\\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 "C:\Users\clement\Documents\dev\project\Tess\node_modules\node-gyp\gyp\gyp_main.py", line 45, in <module>
npm ERR!     sys.exit(gyp.script_main())
npm ERR!   File "C:\Users\clement\Documents\dev\project\Tess\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 662, in script_main
npm ERR!     return main(sys.argv[1:])
npm ERR!   File "C:\Users\clement\Documents\dev\project\Tess\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 654, in main
npm ERR!     return gyp_main(args)
npm ERR!   File "C:\Users\clement\Documents\dev\project\Tess\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 621, in gyp_main
npm ERR!     [generator, flat_list, targets, data] = Load(
npm ERR!   File "C:\Users\clement\Documents\dev\project\Tess\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 142, in Load
npm ERR!     result = gyp.input.Load(
npm ERR!   File "C:\Users\clement\Documents\dev\project\Tess\node_modules\node-gyp\gyp\pylib\gyp\input.py", line 3009, in Load
npm ERR!     LoadTargetBuildFile(
npm ERR!   File "C:\Users\clement\Documents\dev\project\Tess\node_modules\node-gyp\gyp\pylib\gyp\input.py", line 481, in LoadTargetBuildFile
npm ERR!     LoadTargetBuildFile(
npm ERR!   File "C:\Users\clement\Documents\dev\project\Tess\node_modules\node-gyp\gyp\pylib\gyp\input.py", line 427, in LoadTargetBuildFile
npm ERR!     ProcessVariablesAndConditionsInDict(
npm ERR!   File "C:\Users\clement\Documents\dev\project\Tess\node_modules\node-gyp\gyp\pylib\gyp\input.py", line 1327, in ProcessVariablesAndConditionsInDict     
npm ERR!     ProcessVariablesAndConditionsInDict(
npm ERR!   File "C:\Users\clement\Documents\dev\project\Tess\node_modules\node-gyp\gyp\pylib\gyp\input.py", line 1336, in ProcessVariablesAndConditionsInDict     
npm ERR!     expanded = ExpandVariables(value, phase, variables, build_file)
npm ERR!   File "C:\Users\clement\Documents\dev\project\Tess\node_modules\node-gyp\gyp\pylib\gyp\input.py", line 980, in ExpandVariables
npm ERR!     p_stderr = p_stderr.decode("utf-8")
npm ERR! UnicodeDecodeError: 'utf-8' codec can't decode byte 0x82 in position 81: invalid start byte
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 (C:\Users\clement\Documents\dev\project\Tess\node_modules\node-gyp\lib\configure.js:353:16)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Windows_NT 10.0.22000
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\clement\\Documents\\dev\\project\\Tess\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd C:\Users\clement\Documents\dev\project\Tess\node_modules\node-pty
npm ERR! gyp ERR! node -v v16.13.2
npm ERR! gyp ERR! node-gyp -v v8.2.0
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\clement\AppData\Local\npm-cache\_logs\2022-01-19T17_02_23_990Z-debug-0.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    nodejs/nanhttps://github.com/nodejs/nan

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions