{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/6848","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/6848/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/6848/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/6848/events","html_url":"https://github.com/angular/angular-cli/issues/6848","id":239713535,"node_id":"MDU6SXNzdWUyMzk3MTM1MzU=","number":6848,"title":"Installation error: permission denied for node-sas","user":{"login":"macliems","id":4933974,"node_id":"MDQ6VXNlcjQ5MzM5NzQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4933974?v=4","gravatar_id":"","url":"https://api.github.com/users/macliems","html_url":"https://github.com/macliems","followers_url":"https://api.github.com/users/macliems/followers","following_url":"https://api.github.com/users/macliems/following{/other_user}","gists_url":"https://api.github.com/users/macliems/gists{/gist_id}","starred_url":"https://api.github.com/users/macliems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macliems/subscriptions","organizations_url":"https://api.github.com/users/macliems/orgs","repos_url":"https://api.github.com/users/macliems/repos","events_url":"https://api.github.com/users/macliems/events{/privacy}","received_events_url":"https://api.github.com/users/macliems/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2017-06-30T08:40:16Z","updated_at":"2018-06-11T07:33:30Z","closed_at":"2017-07-17T16:07:59Z","author_association":"NONE","body":"Installation error (node-sass) with:\r\n\r\nnode version 8.1.2\r\nnpm version 5.0.3\r\n\r\nI recently updated node from 7.5.0 to 8.1.2 (with nvm). Installing the latest @angular/cli now results in this error:\r\n\r\n### The log given by the failure.\r\n```\r\n> node-sass@4.5.3 install /Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/node-sass\r\n> node scripts/install.js\r\n\r\nUnable to save binary /Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/node-sass/vendor/darwin-x64-57 : { Error: EACCES: permission denied, mkdir '/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/node-sass/vendor'\r\n    at Object.fs.mkdirSync (fs.js:890:18)\r\n    at sync (/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/mkdirp/index.js:71:13)\r\n    at Function.sync (/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/mkdirp/index.js:77:24)\r\n    at checkAndDownloadBinary (/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/node-sass/scripts/install.js:111:11)\r\n    at Object.<anonymous> (/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/node-sass/scripts/install.js:154:1)\r\n    at Module._compile (module.js:569:30)\r\n    at Object.Module._extensions..js (module.js:580:10)\r\n    at Module.load (module.js:503:32)\r\n    at tryModuleLoad (module.js:466:12)\r\n    at Function.Module._load (module.js:458:3)\r\n  errno: -13,\r\n  code: 'EACCES',\r\n  syscall: 'mkdir',\r\n  path: '/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/node-sass/vendor' }\r\n\r\n> fsevents@1.1.2 install /Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/fsevents\r\n> node install\r\n\r\n[fsevents] Success: \"/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node\" already installed\r\nPass --update-binary to reinstall or --build-from-source to recompile\r\n\r\n> node-sass@4.5.3 postinstall /Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/node-sass\r\n> node scripts/build.js\r\n\r\nBuilding: /Users/macliems/.nvm/versions/node/v8.1.2/bin/node /Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=\r\ngyp info it worked if it ends with ok\r\ngyp verb cli [ '/Users/macliems/.nvm/versions/node/v8.1.2/bin/node',\r\ngyp verb cli   '/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/node-gyp/bin/node-gyp.js',\r\ngyp verb cli   'rebuild',\r\ngyp verb cli   '--verbose',\r\ngyp verb cli   '--libsass_ext=',\r\ngyp verb cli   '--libsass_cflags=',\r\ngyp verb cli   '--libsass_ldflags=',\r\ngyp verb cli   '--libsass_library=' ]\r\ngyp info using node-gyp@3.6.2\r\ngyp info using node@8.1.2 | darwin | x64\r\ngyp verb command rebuild []\r\ngyp verb command clean []\r\ngyp verb clean removing \"build\" directory\r\ngyp verb command configure []\r\ngyp verb check python checking for Python executable \"python2\" in the PATH\r\ngyp verb `which` failed Error: not found: python2\r\ngyp verb `which` failed     at getNotFoundError (/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/which/which.js:13:12)\r\ngyp verb `which` failed     at F (/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/which/which.js:68:19)\r\ngyp verb `which` failed     at E (/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/which/which.js:80:29)\r\ngyp verb `which` failed     at /Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/which/which.js:89:16\r\ngyp verb `which` failed     at /Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/isexe/index.js:42:5\r\ngyp verb `which` failed     at /Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/isexe/mode.js:8:5\r\ngyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:152:21)\r\ngyp verb `which` failed  python2 { Error: not found: python2\r\ngyp verb `which` failed     at getNotFoundError (/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/which/which.js:13:12)\r\ngyp verb `which` failed     at F (/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/which/which.js:68:19)\r\ngyp verb `which` failed     at E (/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/which/which.js:80:29)\r\ngyp verb `which` failed     at /Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/which/which.js:89:16\r\ngyp verb `which` failed     at /Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/isexe/index.js:42:5\r\ngyp verb `which` failed     at /Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/isexe/mode.js:8:5\r\ngyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:152:21)\r\ngyp verb `which` failed   stack: 'Error: not found: python2\\n    at getNotFoundError (/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/which/which.js:13:12)\\n    at F (/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/which/which.js:68:19)\\n    at E (/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/which/which.js:80:29)\\n    at /Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/which/which.js:89:16\\n    at /Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/isexe/index.js:42:5\\n    at /Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/isexe/mode.js:8:5\\n    at FSReqWrap.oncomplete (fs.js:152:21)',\r\ngyp verb `which` failed   code: 'ENOENT' }\r\ngyp verb check python checking for Python executable \"python\" in the PATH\r\ngyp verb `which` succeeded python /usr/bin/python\r\ngyp verb check python version `/usr/bin/python -c \"import platform; print(platform.python_version());\"` returned: \"2.7.10\\n\"\r\ngyp verb get node dir no --target version specified, falling back to host node version: 8.1.2\r\ngyp verb command install [ '8.1.2' ]\r\ngyp verb install input version string \"8.1.2\"\r\ngyp verb install installing version: 8.1.2\r\ngyp verb install --ensure was passed, so won't reinstall if already installed\r\ngyp verb install version is already installed, need to check \"installVersion\"\r\ngyp verb got \"installVersion\" 9\r\ngyp verb needs \"installVersion\" 9\r\ngyp verb install version is good\r\ngyp verb get node dir target node version installed: 8.1.2\r\ngyp verb build dir attempting to create \"build\" dir: /Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/node-sass/build\r\ngyp ERR! configure error \r\ngyp ERR! stack Error: EACCES: permission denied, mkdir '/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/node-sass/build'\r\ngyp ERR! System Darwin 16.6.0\r\ngyp ERR! command \"/Users/macliems/.nvm/versions/node/v8.1.2/bin/node\" \"/Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\" \"--verbose\" \"--libsass_ext=\" \"--libsass_cflags=\" \"--libsass_ldflags=\" \"--libsass_library=\"\r\ngyp ERR! cwd /Users/macliems/.nvm/versions/node/v8.1.2/lib/node_modules/@angular/cli/node_modules/node-sass\r\ngyp ERR! node -v v8.1.2\r\ngyp ERR! node-gyp -v v3.6.2\r\ngyp ERR! not ok \r\nBuild failed with error code: 1\r\nnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-sass@4.5.3 (node_modules/@angular/cli/node_modules/node-sass):\r\nnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-sass@4.5.3 postinstall: `node scripts/build.js`\r\nnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/396149365","html_url":"https://github.com/angular/angular-cli/issues/6848#issuecomment-396149365","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/6848","id":396149365,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjE0OTM2NQ==","user":{"login":"saadbinsaeed","id":21288440,"node_id":"MDQ6VXNlcjIxMjg4NDQw","avatar_url":"https://avatars2.githubusercontent.com/u/21288440?v=4","gravatar_id":"","url":"https://api.github.com/users/saadbinsaeed","html_url":"https://github.com/saadbinsaeed","followers_url":"https://api.github.com/users/saadbinsaeed/followers","following_url":"https://api.github.com/users/saadbinsaeed/following{/other_user}","gists_url":"https://api.github.com/users/saadbinsaeed/gists{/gist_id}","starred_url":"https://api.github.com/users/saadbinsaeed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saadbinsaeed/subscriptions","organizations_url":"https://api.github.com/users/saadbinsaeed/orgs","repos_url":"https://api.github.com/users/saadbinsaeed/repos","events_url":"https://api.github.com/users/saadbinsaeed/events{/privacy}","received_events_url":"https://api.github.com/users/saadbinsaeed/received_events","type":"User","site_admin":false},"created_at":"2018-06-11T07:33:30Z","updated_at":"2018-06-11T07:33:30Z","author_association":"NONE","body":"I solved this by simply `yarn add node-sass`"}}
{"actor":{"display_login":"saadbinsaeed"}}