For example this is the way, that many people added paths to environment variables:
```export NODE_PATH=$NODE_PATH:/usr/local/share/npm/lib/node_modules```
If `NODE_PATH` was left blank at system startup, `appendPath` with throw exception.