I don't think either `sudo` or the `export` is necessary. installing with `-g` should be sufficient