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 in Web Development by aishah
• 120 points

recategorized May 22 by Gitika 31 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 by Niroj
• 23,950 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 in Web Development by anonymous
100 views
0 votes
1 answer

How can i create transparency to my images?

The transparency of image can be done ...READ MORE

answered Jan 30 in Web Development by Niroj
• 23,950 points
42 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,280 points
156 views
+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,850 points
6,531 views
+1 vote
3 answers

How can I connect an app with an aws ec2 instance?

This is how you deploy a web ...READ MORE

answered Oct 18, 2018 in DevOps & Agile by Hannah
• 18,040 points
89 views
0 votes
1 answer
+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 in Web Development by Niroj
• 23,950 points

edited Jan 21 by Niroj 52 views