{"action":"created","issue":{"url":"https://api.github.com/repos/laradock/laradock/issues/1238","repository_url":"https://api.github.com/repos/laradock/laradock","labels_url":"https://api.github.com/repos/laradock/laradock/issues/1238/labels{/name}","comments_url":"https://api.github.com/repos/laradock/laradock/issues/1238/comments","events_url":"https://api.github.com/repos/laradock/laradock/issues/1238/events","html_url":"https://github.com/laradock/laradock/issues/1238","id":272655587,"number":1238,"title":"Can't install  Node  & npm","user":{"login":"ilyatab","id":15612304,"avatar_url":"https://avatars1.githubusercontent.com/u/15612304?v=4","gravatar_id":"","url":"https://api.github.com/users/ilyatab","html_url":"https://github.com/ilyatab","followers_url":"https://api.github.com/users/ilyatab/followers","following_url":"https://api.github.com/users/ilyatab/following{/other_user}","gists_url":"https://api.github.com/users/ilyatab/gists{/gist_id}","starred_url":"https://api.github.com/users/ilyatab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilyatab/subscriptions","organizations_url":"https://api.github.com/users/ilyatab/orgs","repos_url":"https://api.github.com/users/ilyatab/repos","events_url":"https://api.github.com/users/ilyatab/events{/privacy}","received_events_url":"https://api.github.com/users/ilyatab/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-11-09T17:37:36Z","updated_at":"2017-11-17T08:15:25Z","closed_at":null,"author_association":"NONE","body":"### Info:\r\n- Docker version (` 17.09.0-ce-mac35 (19611)`): \r\n- Laradock commit (`$ git rev-parse HEAD`): \r\n- System info (Mac): \r\n- System info disto/version: \r\n\r\n### Issue:\r\nCan't install node, because not installed npm...\r\n_____\r\n\r\n### Expected behavior:\r\nnpm install  - successfully completed!\r\n_____\r\n\r\n### Reproduce:\r\n1. I create dir test1.loc -\r\n2. Edit myProject\\laradock\\.env. \r\n3. Change WORKSPACE_INSTALL_NODE=false to WORKSPACE_INSTALL_NODE=true.\r\n4. docker-compose up -d workspace nginx mysql. \r\nwas OK\r\n5. docker-compose exec workspace bash.\r\n6. composer install.\r\n7. php artisan key:generate.\r\n8. After I went to browser - all ok!\r\n9. Go to dir in my project ( cd test1.loc)\r\n10 .npm install.\r\n\r\n....error...\r\n_____\r\n\r\n### Relevant Code:\r\n\r\n```\r\n\r\ngyp verb `which` failed   stack: 'Error: not found: /path/to/executable/python2.7\\n    at getNotFoundError (/var/www/test1.loc/node_modules/which/which.js:13:12)\\n    at F (/var/www/test1.loc/node_modules/which/which.js:68:19)\\n    at E (/var/www/test1.loc/node_modules/which/which.js:80:29)\\n    at /var/www/test1.loc/node_modules/which/which.js:89:16\\n    at /var/www/test1.loc/node_modules/isexe/index.js:42:5\\n    at /var/www/test1.loc/node_modules/isexe/mode.js:8:5\\n    at FSReqWrap.oncomplete (fs.js:166:21)',\r\ngyp verb `which` failed   code: 'ENOENT' }\r\ngyp ERR! configure error\r\ngyp ERR! stack Error: Can't find Python executable \"/path/to/executable/python2.7\", you can set the PYTHON env variable.\r\ngyp ERR! stack     at PythonFinder.failNoPython (/var/www/test1.loc/node_modules/node-gyp/lib/configure.js:483:19)\r\ngyp ERR! stack     at PythonFinder.<anonymous> (/var/www/test1.loc/node_modules/node-gyp/lib/configure.js:397:16)\r\ngyp ERR! stack     at F (/var/www/test1.loc/node_modules/which/which.js:68:16)\r\ngyp ERR! stack     at E (/var/www/test1.loc/node_modules/which/which.js:80:29)\r\ngyp ERR! stack     at /var/www/test1.loc/node_modules/which/which.js:89:16\r\ngyp ERR! stack     at /var/www/test1.loc/node_modules/isexe/index.js:42:5\r\ngyp ERR! stack     at /var/www/test1.loc/node_modules/isexe/mode.js:8:5\r\ngyp ERR! stack     at FSReqWrap.oncomplete (fs.js:166:21)\r\ngyp ERR! System Linux 4.9.49-moby\r\ngyp ERR! command \"/home/laradock/.nvm/versions/node/v9.1.0/bin/node\" \"/var/www/test1.loc/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\" \"--verbose\" \"--libsass_ext=\" \"--libsass_cflags=\" \"--libsass_ldflags=\" \"--libsass_library=\"\r\ngyp ERR! cwd /var/www/test1.loc/node_modules/node-sass\r\ngyp ERR! node -v v9.1.0\r\ngyp ERR! node-gyp -v v3.6.2\r\ngyp ERR! not ok\r\nBuild failed with error code: 1\r\nnpm WARN EINVAL: invalid argument, scandir '/var/www/test1.loc/node_modules/fsevents/node_modules/dashdash/node_modules'\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! errno 1\r\nnpm ERR! node-sass@4.5.3 postinstall: `node scripts/build.js`\r\nnpm ERR! Exit status 1\r\nnpm ERR!\r\nnpm ERR! Failed at the node-sass@4.5.3 postinstall script.\r\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR!     /root/.npm/_logs/2017-11-09T17_26_45_943Z-debug.log\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/laradock/laradock/issues/comments/345175027","html_url":"https://github.com/laradock/laradock/issues/1238#issuecomment-345175027","issue_url":"https://api.github.com/repos/laradock/laradock/issues/1238","id":345175027,"user":{"login":"patrickcarlohickman","id":6036266,"avatar_url":"https://avatars2.githubusercontent.com/u/6036266?v=4","gravatar_id":"","url":"https://api.github.com/users/patrickcarlohickman","html_url":"https://github.com/patrickcarlohickman","followers_url":"https://api.github.com/users/patrickcarlohickman/followers","following_url":"https://api.github.com/users/patrickcarlohickman/following{/other_user}","gists_url":"https://api.github.com/users/patrickcarlohickman/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickcarlohickman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickcarlohickman/subscriptions","organizations_url":"https://api.github.com/users/patrickcarlohickman/orgs","repos_url":"https://api.github.com/users/patrickcarlohickman/repos","events_url":"https://api.github.com/users/patrickcarlohickman/events{/privacy}","received_events_url":"https://api.github.com/users/patrickcarlohickman/received_events","type":"User","site_admin":false},"created_at":"2017-11-17T08:15:25Z","updated_at":"2017-11-17T08:15:25Z","author_association":"NONE","body":"The other problem is that the line `npm config set python /usr/bin/python2.7` is not doing what is intended. The previous `rm -rf` statement is not terminated, so this addition is actually attempting to delete the files `npm`, `config`, `set`, `python`, and `/usr/bin/python2.7`. In this case, the python2.7 exectuable does actually get deleted.\r\n\r\n@nellonican's PR #1257 will fix the issue, though."}}
{"actor":{"display_login":"patrickcarlohickman"}}