{"action":"opened","issue":{"url":"https://api.github.com/repos/ibmdb/node-ibm_db/issues/58","labels_url":"https://api.github.com/repos/ibmdb/node-ibm_db/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/ibmdb/node-ibm_db/issues/58/comments","events_url":"https://api.github.com/repos/ibmdb/node-ibm_db/issues/58/events","html_url":"https://github.com/ibmdb/node-ibm_db/issues/58","id":103748547,"number":58,"title":"ibm_db fails to install if the absolute path to node_modules contains spaces","user":{"login":"mtp401","id":11199401,"avatar_url":"https://avatars.githubusercontent.com/u/11199401?v=3","gravatar_id":"","url":"https://api.github.com/users/mtp401","html_url":"https://github.com/mtp401","followers_url":"https://api.github.com/users/mtp401/followers","following_url":"https://api.github.com/users/mtp401/following{/other_user}","gists_url":"https://api.github.com/users/mtp401/gists{/gist_id}","starred_url":"https://api.github.com/users/mtp401/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtp401/subscriptions","organizations_url":"https://api.github.com/users/mtp401/orgs","repos_url":"https://api.github.com/users/mtp401/repos","events_url":"https://api.github.com/users/mtp401/events{/privacy}","received_events_url":"https://api.github.com/users/mtp401/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-28T16:11:28Z","updated_at":"2015-08-28T16:11:28Z","closed_at":null,"body":"If the absolute path to your node_modules folder contains spaces, ibm_db will fail to install with:\r\n\r\n{ [Error: Command failed: make: *** No rule to make target `xxx/node_modules/ibm_db/installer/clidriver'.  Stop.\r\ngyp ERR! build error \r\ngyp ERR! stack Error: `make` failed with exit code: 2\r\ngyp ERR! stack     at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267:23)\r\ngyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)\r\ngyp ERR! System Linux 3.13.0-62-generic\r\ngyp ERR! command \"nodejs\" \"/usr/bin/node-gyp\" \"configure\" \"build\" \"--IBM_DB_HOME=/var/tmp/space\" \"dir/dir/node_modules/ibm_db/installer/clidriver\" \"--IBM_DB_HOME_WIN=%IBM_DB_HOME%\" \"--IS_DOWNLOADED=true\"\r\ngyp ERR! cwd /var/tmp/space dir/dir/node_modules/ibm_db\r\ngyp ERR! node -v v0.10.25\r\ngyp ERR! node-gyp -v v0.10.10\r\ngyp ERR! not ok \r\n] killed: false, code: 1, signal: null }\r\nnpm WARN This failure might be due to the use of legacy binary \"node\"\r\nnpm WARN For further explanations, please read\r\n/usr/share/doc/nodejs/README.Debian\r\n \r\nnpm ERR! weird error 1\r\nnpm ERR! not ok code 0\r\n\r\nSteps to reproduce:\r\n\r\n```bash\r\nmkdir -p \"/var/tmp/dir with spaces/subdir\"\r\ncd \"/var/tmp/dir with spaces/subdir\"\r\nnpm install ibm_db\r\n```\r\n\r\nNote, this breaks most intelligently named Jenkins jobs."}}