migrate icon indicating copy to clipboard operation
migrate copied to clipboard

Many errors when installing

Open JOY opened this issue 2 years ago • 0 comments

I got there errors while installing:

joy@Vin-Desk:~$ npm install --global @tryghost/migrate npm WARN deprecated [email protected]: This module has moved and is now available at @hapi/topo. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues. npm WARN deprecated [email protected]: this library is no longer supported npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated [email protected]: Use String.prototype.trim() instead npm WARN deprecated [email protected]: This module has moved and is now available at @hapi/hoek. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues. npm WARN deprecated [email protected]: No longer maintained, please use @hubspot/api-client instead npm WARN deprecated [email protected]: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau npm WARN deprecated [email protected]: Use uuid module instead npm WARN deprecated [email protected]: 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 [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated [email protected]: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at https://github.com/visionmedia/superagent/releases. npm WARN deprecated [email protected]: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410 npm WARN cleanup Failed to remove some directories [ npm WARN cleanup [ npm WARN cleanup 'C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules\@tryghost\migrate\node_modules\@stdlib', npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules@tryghost\migrate\node_modules@stdlib\ndarray'] { npm WARN cleanup errno: -4048, npm WARN cleanup code: 'EPERM', npm WARN cleanup syscall: 'rmdir', npm WARN cleanup path: 'C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules\@tryghost\migrate\node_modules\@stdlib\ndarray' npm WARN cleanup } npm WARN cleanup ] npm WARN cleanup ] npm ERR! code 1 npm ERR! path C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules@tryghost\migrate\node_modules\node-expat npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using [email protected] npm ERR! gyp info using [email protected] | win32 | x64 npm ERR! gyp info find Python using Python version 3.11.0 found at "C:\Python311\python.exe" npm ERR! gyp info find VS using VS2019 (16.11.33328.57) 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:\Python311\python.exe npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args 'C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules\npm\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\Anh\AppData\Roaming\nvm\v18.14.1\node_modules\@tryghost\migrate\node_modules\node-expat\build\config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args 'C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules\npm\node_modules\node-gyp\addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args 'C:\Users\Anh\AppData\Local\node-gyp\Cache\18.14.1\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\Anh\AppData\Local\node-gyp\Cache\18.14.1', npm ERR! gyp info spawn args '-Dnode_gyp_dir=C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules\npm\node_modules\node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=C:\\Users\\Anh\\AppData\\Local\\node-gyp\\Cache\\18.14.1\\<(target_arch)\\node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules\@tryghost\migrate\node_modules\node-expat', 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\Anh\AppData\Roaming\nvm\v18.14.1\node_modules\@tryghost\migrate\node_modules\node-expat\build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! gyp: C:\Users\Anh\AppData\Local\node-gyp\Cache\18.14.1\common.gypi not found (cwd: C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules@tryghost\migrate\node_modules\node-expat) while reading includes of binding.gyp while trying to load binding.gyp 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\Anh\AppData\Roaming\nvm\v18.14.1\node_modules\npm\node_modules\node-gyp\lib\configure.js:325:16) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28) npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:291:12) npm ERR! gyp ERR! System Windows_NT 10.0.22623 npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules@tryghost\migrate\node_modules\node-expat npm ERR! gyp ERR! node -v v18.14.1 npm ERR! gyp ERR! node-gyp -v v9.3.0 npm ERR! gyp ERR! not ok

I tried with PowerShell as well:

PS C:\WINDOWS\system32> npm install --global @tryghost/migrate npm WARN deprecated [email protected]: This module has moved and is now available at @hapi/topo. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues. npm WARN deprecated [email protected]: this library is no longer supported npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated [email protected]: Use String.prototype.trim() instead npm WARN deprecated [email protected]: This module has moved and is now available at @hapi/hoek. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues. npm WARN deprecated [email protected]: No longer maintained, please use @hubspot/api-client instead npm WARN deprecated [email protected]: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau npm WARN deprecated [email protected]: Use uuid module instead npm WARN deprecated [email protected]: 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 [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated [email protected]: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at https://github.com/visionmedia/superagent/releases. npm WARN deprecated [email protected]: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410 npm WARN cleanup Failed to remove some directories [ npm WARN cleanup [ npm WARN cleanup 'C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules\@tryghost\migrate\node_modules\sharp', npm WARN cleanup [Error: EBUSY: resource busy or locked, rmdir 'C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules@tryghost\migrate\node_modules\sharp'] { npm WARN cleanup errno: -4082, npm WARN cleanup code: 'EBUSY', npm WARN cleanup syscall: 'rmdir', npm WARN cleanup path: 'C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules\@tryghost\migrate\node_modules\sharp' npm WARN cleanup } npm WARN cleanup ], npm WARN cleanup [ npm WARN cleanup 'C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules\@tryghost\migrate\node_modules\dtrace-provider', npm WARN cleanup [Error: EBUSY: resource busy or locked, rmdir 'C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules@tryghost\migrate\node_modules\dtrace-provider'] { npm WARN cleanup errno: -4082, npm WARN cleanup code: 'EBUSY', npm WARN cleanup syscall: 'rmdir', npm WARN cleanup path: 'C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules\@tryghost\migrate\node_modules\dtrace-provider' npm WARN cleanup } npm WARN cleanup ], npm WARN cleanup [ npm WARN cleanup 'C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules\@tryghost\migrate\node_modules', npm WARN cleanup [Error: EBUSY: resource busy or locked, rmdir 'C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules@tryghost\migrate\node_modules\sharp'] { npm WARN cleanup errno: -4082, npm WARN cleanup code: 'EBUSY', npm WARN cleanup syscall: 'rmdir', npm WARN cleanup path: 'C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules\@tryghost\migrate\node_modules\sharp' npm WARN cleanup } npm WARN cleanup ], npm WARN cleanup [ npm WARN cleanup 'C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules\@tryghost\migrate\node_modules\@tryghost\image-transform', npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules@tryghost\migrate\node_modules@tryghost\image-transform'] { npm WARN cleanup errno: -4048, npm WARN cleanup code: 'EPERM', npm WARN cleanup syscall: 'rmdir', npm WARN cleanup path: 'C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules\@tryghost\migrate\node_modules\@tryghost\image-transform' npm WARN cleanup } npm WARN cleanup ], npm WARN cleanup [ npm WARN cleanup 'C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules\@tryghost\migrate', npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules@tryghost\migrate\node_modules@tryghost\image-transform'] { npm WARN cleanup errno: -4048, npm WARN cleanup code: 'EPERM', npm WARN cleanup syscall: 'rmdir', npm WARN cleanup path: 'C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules\@tryghost\migrate\node_modules\@tryghost\image-transform' npm WARN cleanup } npm WARN cleanup ] npm WARN cleanup ] npm ERR! code 1 npm ERR! path C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules@tryghost\migrate\node_modules\node-expat npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using [email protected] npm ERR! gyp info using [email protected] | win32 | x64 npm ERR! gyp info find Python using Python version 3.11.0 found at "C:\Python311\python.exe" npm ERR! gyp info find VS using VS2019 (16.11.33328.57) 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:\Python311\python.exe npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args 'C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules\npm\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\Anh\AppData\Roaming\nvm\v18.14.1\node_modules\@tryghost\migrate\node_modules\node-expat\build\config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args 'C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules\npm\node_modules\node-gyp\addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args 'C:\Users\Anh\AppData\Local\node-gyp\Cache\18.14.1\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\Anh\AppData\Local\node-gyp\Cache\18.14.1', npm ERR! gyp info spawn args '-Dnode_gyp_dir=C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules\npm\node_modules\node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=C:\\Users\\Anh\\AppData\\Local\\node-gyp\\Cache\\18.14.1\\<(target_arch)\\node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules\@tryghost\migrate\node_modules\node-expat', 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\Anh\AppData\Roaming\nvm\v18.14.1\node_modules\@tryghost\migrate\node_modules\node-expat\build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! gyp: C:\Users\Anh\AppData\Local\node-gyp\Cache\18.14.1\common.gypi not found (cwd: C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules@tryghost\migrate\node_modules\node-expat) while reading includes of binding.gyp while trying to load binding.gyp 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\Anh\AppData\Roaming\nvm\v18.14.1\node_modules\npm\node_modules\node-gyp\lib\configure.js:325:16) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28) npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:291:12) npm ERR! gyp ERR! System Windows_NT 10.0.22623 npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd C:\Users\Anh\AppData\Roaming\nvm\v18.14.1\node_modules@tryghost\migrate\node_modules\node-expat npm ERR! gyp ERR! node -v v18.14.1 npm ERR! gyp ERR! node-gyp -v v9.3.0 npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Anh\AppData\Local\npm-cache_logs\2023-02-26T16_28_45_656Z-debug-0.log

JOY avatar Feb 26 '23 16:02 JOY