Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install error #25

Open
aryabhat1 opened this issue Jun 19, 2022 · 5 comments
Open

npm install error #25

aryabhat1 opened this issue Jun 19, 2022 · 5 comments

Comments

@aryabhat1
Copy link

Hi,
While running 'npm install' I am getting error :
sushant@sprusty:~/Documents/webdev/study/BlockChainVoting$ npm install
npm ERR! code 1
npm ERR! path /home/sushant/Documents/webdev/study/BlockChainVoting/node_modules/sha3
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! make: Entering directory '/home/sushant/Documents/webdev/study/BlockChainVoting/node_modules/sha3/build'
npm ERR! CXX(target) Release/obj.target/sha3/src/addon.o
npm ERR! sha3.target.mk:117: recipe for target 'Release/obj.target/sha3/src/addon.o' failed
npm ERR! make: Leaving directory '/home/sushant/Documents/webdev/study/BlockChainVoting/node_modules/sha3/build'
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] | linux | x64

Hope, you were able to run this project successfully. How to solve this error.

@leo-faizan
Copy link

same here, were you able to fix it??

@leo-faizan
Copy link

fixed it. changed my node version to 14 and that was the fix

@chanakyadarahas
Copy link

same error. please reply..

@paramarora09
Copy link

Hey, please let me know how did you fix this. I have been on it for some hours but I am still not able to run it.

@Shangsit
Copy link

fixed it. changed my node version to 14 and that was the fix

Now I am getting this error after installing node version 14.0.0:-

ERROR: npm v9.6.5 is known not to run on Node.js v14.0.0.  This version of npm supports the following node versions: `^14.17.0 || ^16.13.0 || >=18.0.0`. You can find the latest version at https://nodejs.org/.

ERROR:
C:\Users\shangsit\AppData\Roaming\npm\node_modules\npm\node_modules\hosted-git-info\lib\index.js:63
  #fill (template, opts) {
        ^

SyntaxError: Unexpected token '('
    at wrapSafe (internal/modules/cjs/loader.js:1101:16)
    at Module._compile (internal/modules/cjs/loader.js:1149:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1205:10)
    at Module.load (internal/modules/cjs/loader.js:1034:32)
    at Function.Module._load (internal/modules/cjs/loader.js:923:14)
    at Module.require (internal/modules/cjs/loader.js:1074:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (C:\Users\shangsit\AppData\Roaming\npm\node_modules\npm\node_modules\npm-package-arg\lib\npa.js:8:19)
    at Module._compile (internal/modules/cjs/loader.js:1185:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1205:10)

Please help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants