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 1,364 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,840 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

Jun 29, 2022 in Web Development by gaurav
• 23,260 points
901 views
0 votes
0 answers

How to check radio button is checked using JQuery?

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

Jun 29, 2022 in Web Development by gaurav
• 23,260 points
490 views
0 votes
1 answer

Unsure how to turn this jQuery code to React

You can initialize a state for navTrigger whic tell ...READ MORE

answered Aug 5, 2022 in Web Development by rajatha
• 7,680 points
1,112 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,370 points
1,199 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,840 points
6,537 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
13,123 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,840 points
7,508 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP