{"action":"created","issue":{"url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4609","labels_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4609/labels{/name}","comments_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4609/comments","events_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4609/events","html_url":"https://github.com/robbyrussell/oh-my-zsh/issues/4609","id":116991069,"number":4609,"title":"Throwing PREFIX error nvm / node","user":{"login":"jylinman","id":150944,"avatar_url":"https://avatars.githubusercontent.com/u/150944?v=3","gravatar_id":"","url":"https://api.github.com/users/jylinman","html_url":"https://github.com/jylinman","followers_url":"https://api.github.com/users/jylinman/followers","following_url":"https://api.github.com/users/jylinman/following{/other_user}","gists_url":"https://api.github.com/users/jylinman/gists{/gist_id}","starred_url":"https://api.github.com/users/jylinman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jylinman/subscriptions","organizations_url":"https://api.github.com/users/jylinman/orgs","repos_url":"https://api.github.com/users/jylinman/repos","events_url":"https://api.github.com/users/jylinman/events{/privacy}","received_events_url":"https://api.github.com/users/jylinman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-15T12:49:00Z","updated_at":"2015-11-16T02:48:45Z","closed_at":null,"body":"I was getting this error when I started my terminal and when I would try to specify node versions with nvm: `nvm is not compatible with the npm config \"prefix\" option: currently set to \"/Users/----/.nvm/versions/node/v0.12.7\"\r\nRun `nvm use --delete-prefix v0.12.7` to unset it.`\r\n\r\n```\r\nnvm deactivate ; nvm debug ; echo $PREFIX ; echo $NPM_CONFIG_PREFIX\r\nCould not find /Users/albanda/.nvm/*/bin in $PATH\r\nCould not find /Users/albanda/.nvm/*/share/man in $MANPATH\r\n$SHELL: /usr/local/bin/zsh\r\n$NVM_DIR: '$HOME/.nvm'\r\n$PREFIX: '---'\r\n$NPM_CONFIG_PREFIX: ''\r\nnvm current: system\r\nwhich node: /usr/local/bin/node\r\nwhich iojs: iojs not found\r\nwhich npm: /usr/local/bin/npm\r\nnpm config get prefix: /usr/local\r\nnpm root -g: /usr/local/lib/node_modules\r\n---\r\n```\r\n\r\nIs there any objection to maybe adding `unset PREFIX` to the theme files like this? I added it to my theme file, and can now continue work... `https://github.com/robbyrussell/oh-my-zsh/blob/master/themes/sunrise.zsh-theme`  \r\n\r\nThis issue was related to https://github.com/creationix/nvm/issues/855 but not quite the same issue."},"comment":{"url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/comments/156894905","html_url":"https://github.com/robbyrussell/oh-my-zsh/issues/4609#issuecomment-156894905","issue_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4609","id":156894905,"user":{"login":"apjanke","id":2618447,"avatar_url":"https://avatars.githubusercontent.com/u/2618447?v=3","gravatar_id":"","url":"https://api.github.com/users/apjanke","html_url":"https://github.com/apjanke","followers_url":"https://api.github.com/users/apjanke/followers","following_url":"https://api.github.com/users/apjanke/following{/other_user}","gists_url":"https://api.github.com/users/apjanke/gists{/gist_id}","starred_url":"https://api.github.com/users/apjanke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apjanke/subscriptions","organizations_url":"https://api.github.com/users/apjanke/orgs","repos_url":"https://api.github.com/users/apjanke/repos","events_url":"https://api.github.com/users/apjanke/events{/privacy}","received_events_url":"https://api.github.com/users/apjanke/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T02:48:45Z","updated_at":"2015-11-16T02:48:45Z","body":"I think we already have a PR open for this: #4572. Looks like `sunrise` is the only theme to use `$PREFIX` like this. Does #4572 work for you?"}}