is there any way to download truffle how to solve this error

0 votes

I have tried downloading truffle using my node.js command prompt with the command of ' npm install -g truffle '. However, i got this error instead?

Does anyone know what could be the problem? Tried running it as administrator but still cannot work

May 22, 2020 in Web Development by aishah
• 120 points

recategorized May 23, 2020 by Gitika 496 views

1 answer to this question.

0 votes

Hello @ aishah ,

It seems likely that this is just something messed up with your local dev environment.

Some things I might try:

  1. wiping away node_modules and trying again
  2. different version of npm / node
  3. npm cache clean
  4. Delete your $HOME/.node-gyp directory

If you google around for "npm issues" and "node-gyp" there are lots of GH issues with similar problems, that might provide help debugging and resolving this.

Hope this works!!

answered May 25, 2020 by Niroj
• 82,680 points

Related Questions In Web Development

+1 vote
2 answers

How to embed Google map on my website?

1. Search whatever you want to embed. 2. ...READ MORE

answered Jan 17, 2020 in Web Development by anonymous
+1 vote
1 answer

How to access the Angularjs scope of a particular html element from our console?

Hello, You should follow the below steps:-- 1.Compile and ...READ MORE

answered Jan 21, 2020 in Web Development by Niroj
• 82,680 points

edited Jan 21, 2020 by Niroj 606 views
0 votes
1 answer
0 votes
1 answer

XMLHttpRequest is not defined while sending request to blockchain service via C#

use post data in url link and ...READ MORE

answered Sep 20, 2018 in Blockchain by slayer
• 29,310 points
0 votes
1 answer

Error:npm not working after clearing cache

Hello @kartik, Try this: npm cache clean --force OR It ...READ MORE

answered Jul 17, 2020 in Node-js by Niroj
• 82,680 points
0 votes
0 answers
+1 vote
8 answers

How can I implement process.env in Angular 5 environment?

Users do not have access to process.env ...READ MORE

answered Apr 3, 2018 in DevOps & Agile by DareDev
• 6,890 points
0 votes
1 answer

How to download a file by jQuery.Ajax?

Hello @kartik, You don't need to do this ...READ MORE

answered Sep 18, 2020 in Web Development by Niroj
• 82,680 points
Send OTP
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP