truffle-next icon indicating copy to clipboard operation
truffle-next copied to clipboard

npm error while installing truffle-next in windows

Open emharsha1812 opened this issue 2 years ago • 5 comments

I recently thought of working on a project using truffle and next-js so wanted to install the truffle-next box However, I encountered some issues, a big list of npm errors

I am copy-pasting the entire list of errors below

× Setting up box Unbox failed! × Setting up box Unbox failed! Error: Command failed: cd client && npm install && npm run link-contracts npm ERR! code 128 npm ERR! git dep preparation failed npm ERR! command C:\Program Files\nodejs\node.exe C:\Users\harsh\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js install --force --cache=C:\Users\harsh\AppData\Local\npm-cache --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit npm ERR! npm WARN using --force Recommended protections disabled. npm ERR! npm ERR! code 128 npm ERR! npm ERR! command failed npm ERR! npm ERR! command git --no-replace-objects ls-remote ssh://[email protected]/gulpjs/gulp.git npm ERR! npm ERR! [email protected]: Permission denied (publickey). npm ERR! npm ERR! fatal: Could not read from remote repository. npm ERR! npm ERR! npm ERR! npm ERR! Please make sure you have the correct access rights npm ERR! npm ERR! and the repository exists. npm ERR! npm ERR! npm ERR! A complete log of this run can be found in: npm ERR! npm ERR! C:\Users\harsh\AppData\Local\npm-cache_logs\2022-02-06T06_56_50_418Z-debug.log

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\harsh\AppData\Local\npm-cache_logs\2022-02-06T06_56_52_199Z-debug.log

at checkExecSyncError (node:child_process:826:11)
at Object.execSync (node:child_process:900:15)
at Object.installBoxDependencies (C:\Users\harsh\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\box\dist\lib\utils\unbox.js:139:1)
at Object.setUpBox (C:\Users\harsh\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\box\dist\lib\utils\index.js:66:1)
at C:\Users\harsh\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\box\dist\box.js:183:1
at Generator.next (<anonymous>)
at fulfilled (C:\Users\harsh\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\box\dist\box.js:5:42)
at processTicksAndRejections (node:internal/process/task_queues:96:5)

Truffle v5.4.32 (core: 5.4.32) Node v16.13.2

I am using Windows 11, along with the version of Node and Truffle as specified above Does anyone have a resolve to this issue?

emharsha1812 avatar Feb 06 '22 07:02 emharsha1812

I'm having the same problem using Fedora, so it's not Windows related. I tried different node version but got no luck.

wiredmatt avatar Feb 18 '22 00:02 wiredmatt

Problem persists in mac as well, any solution?

vishalcs106 avatar Feb 28 '22 15:02 vishalcs106

Same issue on Ubuntu.

saricden avatar Mar 05 '22 14:03 saricden

Anyone want to try to contribute on this? Happy to help.

thetwosents avatar Apr 20 '22 00:04 thetwosents

The unbox is all outdated. I just made a truffle and nextjs project manually.

npx create-next-app@latest
cd example-project
truffle init

denny999222 avatar May 14 '22 18:05 denny999222