error Error: ENOENT

Overview

I was using the Angular generator in Yeoman but came across some funny errors when it was scaffolding. It turns out a clean out of the cache and quick update of Node fixed it.

Error

Example error I was getting:

64509 error Error: ENOENT, lstat ‘/web/node_modules/grunt-google-cdn/node_modules/bower/node_modules/bower-registry-client/node_modules/request/tests/test-form.js’
64510 error If you need help, you may report this *entire* log,
64510 error including the npm and node versions, at:
64510 error
64511 error System Linux 3.13.0-33-generic
64512 error command “node” “/usr/local/node/bin/npm” “install”
64513 error cwd /web
64514 error node -v v0.10.28
64515 error npm -v 2.0.0-alpha-5

Fix

Clean the Node cache.
sudo npm cache clean -f

Update Node.
sudo npm install -g n

Upgrade to Node to a stable version.
sudo n stable

Errors running yeoman AngularJS generator
Upgrade Node.js via NPM

About Danny

I.T software professional always studying and applying the knowledge gained and one way of doing this is to blog. Danny also has participates in a part time project called Energy@Home [http://code.google.com/p/energyathome/] for monitoring energy usage on a premise. Dedicated to I.T since studying pure Information Technology since the age of 16, Danny Tsang working in the field that he has aimed for since leaving school. View all posts by Danny → This entry was posted in Software and tagged , , , , , . Bookmark the permalink.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.