Uciebila
Uciebila

Reputation: 511

Node update npm error - missing file or directory

I have been trying to update the version of node on my box. When I attempt to do this either by npm update node, npm install node, or npm update node -g I get the following error (path depending on if global or local)

npm ERR! encent ENOENT: no such file or directory, chmod 'path/home/node_modules/nodebin/node'
npm ERR! encent ENOENT: no such file or directory, chmod 'path/home/node_modules/nodebin/node'

Unsure how I would be able to pull through an update when this missing file error occurs no matter what.

Upvotes: 0

Views: 186

Answers (1)

Uciebila
Uciebila

Reputation: 511

After searching and trying different options the best one that worked for me was installing nvm and using that to update node instead, which worked without error.

Upvotes: 1

Related Questions