zkat / npx

execute npm package binaries (moved)
https://github.com/npm/npx
Other
2.63k stars 105 forks source link

Cannot find module 'internal/util/types' when doing npm install -g npx #229

Open RyanMitchellWilson opened 5 years ago

RyanMitchellWilson commented 5 years ago

I'm trying to install npx but whenever I run npm install -g npx I get this error:

npm install -g npx
npm ERR! Darwin 18.2.0
npm ERR! argv "/Users/ryanwilson/.nvm/versions/node/v8.10.0/bin/node" "/Users/ryanwilson/.nvm/versions/node/v8.10.0/bin/npm" "install" "-g" "npx"
npm ERR! node v8.10.0
npm ERR! npm  v3.3.12
npm ERR! code MODULE_NOT_FOUND

npm ERR! Cannot find module 'internal/util/types'

Anyone have any idea on why this is happening?