Skip to content

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

Closed
binarykitchen opened this Issue Aug 21, 2013 · 7 comments

4 participants

@binarykitchen

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

> node -v && npm -v
v0.10.16
1.3.8

Can anyone explain?

@dharmavagabond

Try npm cache clean. It worked for me.

@binarykitchen

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

@dharmavagabond

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

@binarykitchen

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

@luk-
luk- commented Aug 23, 2013
@timoxley
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?

#4430

@binarykitchen

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.