zkat / npx

execute npm package binaries (moved)

Home Page:https://github.com/npm/npx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

RyanMitchellWilson opened this issue · comments

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?