'unable to install truffle express box

Starting unbox...

√ Preparing to download box

√ Downloading

npm ERR! code ENOENT

npm ERR! syscall spawn git

npm ERR! path git

npm ERR! errno -4058

npm ERR! enoent An unknown git error occurred

npm ERR! enoent This is related to npm not being able to find a file.

npm ERR! enoent

npm ERR! A complete log of this run can be found in:

npm ERR! C:\Users\Dayou\AppData\Local\npm-cache_logs\2022-04-04T14_57_16_724Z-debug-0.log

√ Cleaning up temporary files

× Setting up box

Unbox failed!

× Setting up box

Unbox failed!

Error: Command failed: npm install

npm ERR! code ENOENT

npm ERR! syscall spawn git

npm ERR! path git

npm ERR! errno -4058

npm ERR! enoent An unknown git error occurred

npm ERR! enoent This is related to npm not being able to find a file.

npm ERR! enoent

npm ERR! A complete log of this run can be found in:

npm ERR! C:\Users\Dayou\AppData\Local\npm-cache_logs\2022-04-04T14_57_16_724Z-debug-0.log

at checkExecSyncError (node:child_process:828:11)

at Object.execSync (node:child_process:902:15)

at Object.installBoxDependencies 

(C:\Users\Dayou\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\box\dist\lib\utils\unbox.js:139:1)

at Object.setUpBox 

(C:\Users\Dayou\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\box\dist\lib\utils\index.js:66:1) at C:\Users\Dayou\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\box\dist\box.js:183:1

at Generator.next (<anonymous>)

at fulfilled 

(C:\Users\Dayou\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\box\dist\box.js:5:43)

Truffle v5.5.6 (core: 5.5.6)

Node v16.14.2

Operating System: windows 10

Ethereum client:

Truffle version (truffle version):v5.5.6 (core: 5.5.6)

node version (node --version): v16.14.2

npm version (npm --version): 8.6.0



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source