inxilpro / node-app-root-path

Determine the root path to your project
MIT License
605 stars 29 forks source link

Include node installs via nvm as edge case #21

Open DavideDaniel opened 7 years ago

DavideDaniel commented 7 years ago

The edge cases don't account for nvm installations of node. When globally installing modules in this case, it can lead to incorrect paths being collected and issues such as this:

/Users/{user}/.nvm/versions/node/v6.9.5/lib/node_modules/{pkg}/src/state did not exist, creating...
Successfully wrote file to /Users/{user}/.nvm/versions/node/v6.9.5/lib/node_modules/{pkg}/src/state/App/index.js