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 528 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,720 points

Related Questions In Web Development

0 votes
0 answers

How to add a link in Jquery PrettyPhoto to download the image

I am using Jquery PrettyPhoto to have ...READ MORE

3 days ago in Web Development by gaurav
• 13,460 points
4 views
0 votes
0 answers

How to check radio button is checked using JQuery?

I have two radio buttons in one ...READ MORE

3 days ago in Web Development by gaurav
• 13,460 points
6 views
+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
352 views
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
766 views
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,720 points
4,218 views
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
10,967 views
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,720 points
5,425 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP