4

getting the following error.

npm ERR! Linux 4.4.0-87-generic
npm ERR! argv "/usr/local/n/versions/node/8.2.1/bin/node" "/usr/bin/npm" "install" "-g" "ethereumjs-testrpc"
npm ERR! node v8.2.1
npm ERR! npm  v3.5.2
npm ERR! code MODULE_NOT_FOUND

npm ERR! Cannot find module 'ansi'
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

Can someone help?

2
  • 2
    try npm install and then your command
    – Gawey
    Aug 4 '17 at 7:05
  • 1
    Have you installed testrpc as specified here. When posting questions, please provide how you got the error,i.e., what all steps/commands you executed which ran into errors. Aug 4 '17 at 10:21
1

Problem solved. First I removed nodejs using sudo apt-get remove nodejs Then installed it again and then I installed testrpc and truffle

0

I think one should use Docker container like alpine to play with frameworks like truffle. That will definitely reduce the headache of installing and setting up the environment. Alougth in case of nodejs installation error it's already preferable to reinstall it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.