Skip to content

Error: Cannot find module '/opt/node-0.10.16/lib/node_modules/npm/lib/build.js' #3812

binarykitchen opened this Issue Aug 21, 2013 · 7 comments

4 participants


Each time I run a sudo npm update -g I get this. But the file build.js is there.

> node -v && npm -v

Can anyone explain?


Try npm cache clean. It worked for me.


How is the cache related to this? Does not make sense to me ...


I’m sorry mate; I don’t know why clearing the cache made npm update -g work again.


OK. Can anybody explain? And why does the cache not clear / invalidate itself after certain operations?

luk- commented Aug 23, 2013
npm member
timoxley commented Jan 8, 2014

@binarykitchen Sometimes (rarely) the cache does get confused and needs to be cleared. Are you still having this issue? Can please try using the latest version of npm (currently 1.3.23) and close this if your specific issue is resolved?



For reasons I cannot explain nor elaborate, I am not having this issue anymore. Closing now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.