NPM install error (2024)

NPM install error (1) Konrad Stępień staff answered 4 years ago

0 0 Best answer

Hi @ruwikmann and @Rotaru,

Did you can try it :

  1. Delete node_modules folder and package-json.lock
  2. Then run npm i
  3. If problem still exists repeat point 1 and go to 4 point
  4. Update npm with command npm i -g npm
  5. Run command npm cache verify and then run npm i

You should fix it on the second point, but if the problem still exists please tell me about it. I will try to fix it.

Best regards,Konrad.

Joao Marques free commented 1 year ago

npm ERR! code 7npm ERR! path C:\Users\João Marques\OneDrive\Ambiente de Trabalho\lei22_23_s5_3di_50\Logistics\node_modules\argon2npm ERR! command failednpm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-gyp rebuildnpm ERR! gyp info it worked if it ends with oknpm ERR! gyp info using node-gyp@9.3.0npm ERR! gyp info using node@18.12.1 | win32 | x64npm ERR! gyp info find Python using Python version 3.11.0 found at "C:\Python311\python.exe"npm ERR! gyp info find VS using VS2017 (15.9.33027.88) found at:npm ERR! gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools"npm ERR! gyp info find VS run with --verbose for detailed informationnpm ERR! gyp info spawn C:\Python311\python.exenpm ERR! gyp info spawn args [npm ERR! gyp info spawn args 'C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\run-script\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\João Marques\OneDrive\Ambiente de Trabalho\lei22_23_s5_3di_50\Logistics\node_modules\argon2\build\config.gypi',
npm ERR! gyp info spawn args '-I',npm ERR! gyp info spawn args 'C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\run-script\node_modules\node-gyp\addon.gypi',npm ERR! gyp info spawn args '-I',npm ERR! gyp info spawn args 'C:\Users\João Marques\AppData\Local\node-gyp\Cache\18.12.1\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\João Marques\AppData\Local\node-gyp\Cache\18.12.1',npm ERR! gyp info spawn args '-Dnode_gyp_dir=C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\run-script\node_modules\node-gyp',npm ERR! gyp info spawn args '-Dnode_lib_file=C:\\Users\\João Marques\\AppData\\Local\\node-gyp\\Cache\\18.12.1\\<(target_arch)\\node.lib',npm ERR! gyp info spawn args '-Dmodule_root_dir=C:\Users\João Marques\OneDrive\Ambiente de Trabalho\lei22_23_s5_3di_50\Logistics\node_modules\argon2',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\João Marques\OneDrive\Ambiente de Trabalho\lei22_23_s5_3di_50\Logistics\node_modules\argon2\build',npm ERR! gyp info spawn args '-Goutput_dir=.'npm ERR! gyp info spawn args ]npm ERR! gyp info spawn C:\Program Files\Microsoft Visual Studio\2022\Community\Msbuild\Current\Bin\MSBuild.exenpm ERR! gyp info spawn args [npm ERR! gyp info spawn args 'build/binding.sln',npm ERR! gyp info spawn args '/clp:Verbosity=minimal',npm ERR! gyp info spawn args '/nologo',npm ERR! gyp info spawn args '/p:Configuration=Release;Platform=x64'npm ERR! gyp info spawn args ]npm ERR! gyp ERR! UNCAUGHT EXCEPTIONnpm ERR! gyp ERR! stack Error: spawn C:\Program Files\Microsoft Visual Studio\2022\Community\Msbuild\Current\Bin\MSBuild.exe ENOENTnpm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:283:19)npm ERR! gyp ERR! stack at onErrorNT (node:internal/child_process:476:16)
npm ERR! gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:82:21)npm ERR! gyp ERR! System Windows_NT 10.0.19045npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\run-script\node_modules\node-gyp\bin\node-gyp.js" "rebuild"npm ERR! gyp ERR! cwd C:\Users\João Marques\OneDrive\Ambiente de Trabalho\lei22_23_s5_3di_50\Logistics\node_modules\argon2npm ERR! gyp ERR! node -v v18.12.1npm ERR! gyp ERR! node-gyp -v v9.3.0npm ERR! gyp ERR! Node-gyp failed to build your package.npm ERR! gyp ERR! Try to update npm and/or node-gyp and if it does not help file an issue with the package author.

npm ERR! A complete log of this run can be found in:npm ERR! C:\Users\João Marques\AppData\Local\npm-cache_logs\2022-11-30T17_28_35_126Z-debug-0.log

I've already tried every step with no success

Add comment

NPM install error (2024)
Top Articles
Latest Posts
Article information

Author: Saturnina Altenwerth DVM

Last Updated:

Views: 6230

Rating: 4.3 / 5 (64 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Saturnina Altenwerth DVM

Birthday: 1992-08-21

Address: Apt. 237 662 Haag Mills, East Verenaport, MO 57071-5493

Phone: +331850833384

Job: District Real-Estate Architect

Hobby: Skateboarding, Taxidermy, Air sports, Painting, Knife making, Letterboxing, Inline skating

Introduction: My name is Saturnina Altenwerth DVM, I am a witty, perfect, combative, beautiful, determined, fancy, determined person who loves writing and wants to share my knowledge and understanding with you.