{"action":"created","issue":{"url":"https://api.github.com/repos/creationix/nvm/issues/1034","repository_url":"https://api.github.com/repos/creationix/nvm","labels_url":"https://api.github.com/repos/creationix/nvm/issues/1034/labels{/name}","comments_url":"https://api.github.com/repos/creationix/nvm/issues/1034/comments","events_url":"https://api.github.com/repos/creationix/nvm/issues/1034/events","html_url":"https://github.com/creationix/nvm/issues/1034","id":140109490,"number":1034,"title":"Problem on Debian shared hosting account","user":{"login":"Proper-Job","id":5182820,"avatar_url":"https://avatars.githubusercontent.com/u/5182820?v=3","gravatar_id":"","url":"https://api.github.com/users/Proper-Job","html_url":"https://github.com/Proper-Job","followers_url":"https://api.github.com/users/Proper-Job/followers","following_url":"https://api.github.com/users/Proper-Job/following{/other_user}","gists_url":"https://api.github.com/users/Proper-Job/gists{/gist_id}","starred_url":"https://api.github.com/users/Proper-Job/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Proper-Job/subscriptions","organizations_url":"https://api.github.com/users/Proper-Job/orgs","repos_url":"https://api.github.com/users/Proper-Job/repos","events_url":"https://api.github.com/users/Proper-Job/events{/privacy}","received_events_url":"https://api.github.com/users/Proper-Job/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-11T07:26:53Z","updated_at":"2016-03-11T16:40:42Z","closed_at":null,"body":"I initially thought this was related to https://github.com/creationix/nvm/issues/855 but @ljharb said it wasn't, so here goes.\r\n\r\nI have a problem installing nvm on a shared hosting linux account. \r\n```shell\r\n→ uname -a\r\nLinux s20.wservices.ch 4.4.2 #1 SMP Fri Feb 19 01:38:58 CET 2016 x86_64 GNU/Linux\r\n\r\n→ cat /etc/debian_version\r\n8.3\r\n\r\n→ echo $0\r\n-bash\r\n\r\n→ bash --version\r\nGNU bash, version 4.3.30(1)-release (i586-pc-linux-gnu)\r\n```\r\n\r\nI installed the latest version using the curl command.  \r\n``node`` and ``npm`` are not installed on the system (actually there is a /usr/bin/nodejs version that obviously not found through ```which node```)\r\nNVM_DIR is not a symlink and there is nothing _funny_ about the environment.\r\n\r\nthis is my nvm debug output:\r\n\r\n- right after curl install\r\n\r\n```shell\r\n→ nvm debug\r\nnvm --version: v0.31.0\r\n$SHELL: /bin/bash\r\n$HOME: /home/fingershop\r\n$NVM_DIR: '$HOME/.nvm'\r\n$PREFIX: ''\r\n$NPM_CONFIG_PREFIX: ''\r\nnvm current: none\r\nwhich node:\r\nwhich iojs:\r\nwhich npm:\r\nnpm config get prefix: -bash: npm: command not found\r\nnpm root -g: -bash: npm: command not found\r\n```\r\n\r\n- installing a node version\r\n\r\n```shell\r\n→ nvm install\r\nFound '/home/fingershop/fingershop_server/.nvmrc' with version <5.7.1>\r\nDownloading https://nodejs.org/dist/v5.7.1/node-v5.7.1-linux-x64.tar.xz...\r\n######################################################################## 100.0%\r\n/home/fingershop/.nvm/versions/node/v5.7.1/bin/npm: 2: exec: /home/fingershop/.nvm/versions/node/v5.7.1/bin/node: not found\r\nnvm is not compatible with the npm config \"prefix\" option: currently set to \"\"\r\nRun `nvm use --delete-prefix v5.7.1` to unset it.\r\n```\r\n\r\n- trying to delete the prefix\r\n\r\n```shell\r\n→ nvm use --delete-prefix v5.7.1\r\n/home/fingershop/.nvm/versions/node/v5.7.1/bin/npm: 2: exec: /home/fingershop/.nvm/versions/node/v5.7.1/bin/node: not found\r\n/home/fingershop/.nvm/versions/node/v5.7.1/bin/npm: 2: exec: /home/fingershop/.nvm/versions/node/v5.7.1/bin/node: not found\r\n```"},"comment":{"url":"https://api.github.com/repos/creationix/nvm/issues/comments/195443805","html_url":"https://github.com/creationix/nvm/issues/1034#issuecomment-195443805","issue_url":"https://api.github.com/repos/creationix/nvm/issues/1034","id":195443805,"user":{"login":"ljharb","id":45469,"avatar_url":"https://avatars.githubusercontent.com/u/45469?v=3","gravatar_id":"","url":"https://api.github.com/users/ljharb","html_url":"https://github.com/ljharb","followers_url":"https://api.github.com/users/ljharb/followers","following_url":"https://api.github.com/users/ljharb/following{/other_user}","gists_url":"https://api.github.com/users/ljharb/gists{/gist_id}","starred_url":"https://api.github.com/users/ljharb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljharb/subscriptions","organizations_url":"https://api.github.com/users/ljharb/orgs","repos_url":"https://api.github.com/users/ljharb/repos","events_url":"https://api.github.com/users/ljharb/events{/privacy}","received_events_url":"https://api.github.com/users/ljharb/received_events","type":"User","site_admin":false},"created_at":"2016-03-11T16:40:42Z","updated_at":"2016-03-11T16:40:42Z","body":"@Proper-Job Thanks for filing! What does the `$PREFIX` env var contain? Is there a \"prefix\" line in your `~/.npmrc`?"}}