Expo CLI update Error

My computer crashed and now I have a new iMac and I’m able to run expo with no problem. But when I go to update the expo cli (I get the message there is a new version). I run this

npm install -g expo-cli

and get this output

Error: Cannot find module ‘…/lib/utils/unsupported.js’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at /usr/local/lib/node_modules/npm/bin/npm-cli.js:19:21
at Object. (/usr/local/lib/node_modules/npm/bin/npm-cli.js:152:3)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)

any ideas what I get do to update the CLI?

ok…error went away when I downloaded node from the node web site and installed it again

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.