You have probably accidentally installed a npm type package while trying to install it globally. Open your users directory or the directory this issue is caused and then uninstall the unnecessary type packages for me it was the @types/chrome package. I had unintentionally installed it onto C:/Users/.../