I've installed nodenv to manage versions of node and npm in my pc. Because when I try install packages like , angular-cli, webpack , typescript, angular2 and another, I get errors
FIRST QUESTION: Can an version node or npm produce error when i install a package?
Some packages tells things like: "The generated project has dependencies that require Node 4.x.x and NPM 3.x.x."
but they don't mention the exact version. by example Can a version of node 4.1.5 produce errors and not the version 4.0.5 ?
SECOND QUESTION: I don't like these packages need be installed like global (-g) and the problems i see sometimes there are conflicts between global packages installed. Example error:
npm WARN EPEERINVALID [email protected] requires a peer of [email protected] || 2.x.x but none was installed. PhantomJS not found on PATH Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-macosx.zip but what about if two global packages use same global package, but some of they use a different version for every package?