{"action":"closed","issue":{"url":"https://api.github.com/repos/yeoman/generator-angular/issues/1150","labels_url":"https://api.github.com/repos/yeoman/generator-angular/issues/1150/labels{/name}","comments_url":"https://api.github.com/repos/yeoman/generator-angular/issues/1150/comments","events_url":"https://api.github.com/repos/yeoman/generator-angular/issues/1150/events","html_url":"https://github.com/yeoman/generator-angular/issues/1150","id":96977213,"number":1150,"title":"node-gyp not working on Windows in enterprise environment","user":{"login":"dschulten","id":107194,"avatar_url":"https://avatars.githubusercontent.com/u/107194?v=3","gravatar_id":"","url":"https://api.github.com/users/dschulten","html_url":"https://github.com/dschulten","followers_url":"https://api.github.com/users/dschulten/followers","following_url":"https://api.github.com/users/dschulten/following{/other_user}","gists_url":"https://api.github.com/users/dschulten/gists{/gist_id}","starred_url":"https://api.github.com/users/dschulten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dschulten/subscriptions","organizations_url":"https://api.github.com/users/dschulten/orgs","repos_url":"https://api.github.com/users/dschulten/repos","events_url":"https://api.github.com/users/dschulten/events{/privacy}","received_events_url":"https://api.github.com/users/dschulten/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-24T06:40:27Z","updated_at":"2015-07-24T11:16:56Z","closed_at":"2015-07-24T11:16:56Z","body":"A freshly scaffolded project fails when node-gyp is executed, because a Windows group policy in enterprise environments somehow blocks MSVSVersion.py. \r\nIn general, Node-Gyp is problematic on Windows, it requires Visual C++ and Python as dependencies, which is a real mouthful. Can generator-angular avoid node-gyp, or not run it on Windows?\r\n\r\n```\r\nC:\\AZ_DATEN\\ws\\meine_spa\\ui-route>node \"C:\\AZ_DATEN\\nodejs\\node_modules\\npm\\bin\\node-gyp-bin\\\\..\\..\\node_modules\\node-gyp\\bin\\node-gyp.js\" rebuild\r\ngyp info it worked if it ends with ok\r\ngyp info using node-gyp@1.0.2\r\ngyp info using node@0.10.31 | win32 | ia32\r\ngyp info spawn python\r\ngyp info spawn args [ 'C:\\\\AZ_DATEN\\\\nodejs\\\\node_modules\\\\npm\\\\node_modules\\\\node-gyp\\\\gyp\\\\gyp_main.py',\r\ngyp info spawn args   'binding.gyp',\r\ngyp info spawn args   '-f',\r\ngyp info spawn args   'msvs',\r\ngyp info spawn args   '-G',\r\ngyp info spawn args   'msvs_version=auto',\r\ngyp info spawn args   '-I',\r\ngyp info spawn args   'C:\\\\AZ_DATEN\\\\ws\\\\meineallianz_spa\\\\ui-route\\\\build\\\\config.gypi',\r\ngyp info spawn args   '-I',\r\ngyp info spawn args   'C:\\\\AZ_DATEN\\\\nodejs\\\\node_modules\\\\npm\\\\node_modules\\\\node-gyp\\\\addon.gypi',\r\ngyp info spawn args   '-I',\r\ngyp info spawn args   'C:\\\\Users\\\\xs47xsd\\\\.node-gyp\\\\0.10.31\\\\common.gypi',\r\ngyp info spawn args   '-Dlibrary=shared_library',\r\ngyp info spawn args   '-Dvisibility=default',\r\ngyp info spawn args   '-Dnode_root_dir=C:\\\\Users\\\\xs47xsd\\\\.node-gyp\\\\0.10.31',\r\ngyp info spawn args   '-Dmodule_root_dir=C:\\\\AZ_DATEN\\\\ws\\\\meine_spa\\\\ui-route',\r\ngyp info spawn args   '--depth=.',\r\ngyp info spawn args   '--no-parallel',\r\ngyp info spawn args   '--generator-output',\r\ngyp info spawn args   'C:\\\\AZ_DATEN\\\\ws\\\\meine_spa\\\\ui-route\\\\build',\r\ngyp info spawn args   '-Goutput_dir=.' ]\r\nTraceback (most recent call last):\r\n  File \"C:\\AZ_DATEN\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py\", line 18, in <module>\r\n    sys.exit(gyp.script_main())\r\n  File \"C:\\AZ_DATEN\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\pylib\\gyp\\__init__.py\", line 534, in script_main\r\n    return main(sys.argv[1:])\r\n  File \"C:\\AZ_DATEN\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\pylib\\gyp\\__init__.py\", line 527, in main\r\n    return gyp_main(args)\r\n  File \"C:\\AZ_DATEN\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\pylib\\gyp\\__init__.py\", line 503, in gyp_main\r\n    options.circular_check)\r\n  File \"C:\\AZ_DATEN\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\pylib\\gyp\\__init__.py\", line 98, in Load\r\n    generator.CalculateVariables(default_variables, params)\r\n  File \"C:\\AZ_DATEN\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\pylib\\gyp\\generator\\msvs.py\", line 1867, in CalculateVariables\r\n    generator_flags.get('msvs_version', 'auto'))\r\n  File \"C:\\AZ_DATEN\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\pylib\\gyp\\MSVSVersion.py\", line 402, in SelectVisualStudioVersion\r\n    versions = _DetectVisualStudioVersions(version_map[version], 'e' in version)\r\n  File \"C:\\AZ_DATEN\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\pylib\\gyp\\MSVSVersion.py\", line 339, in _DetectVisualStudioVersions\r\n    path = _RegistryGetValue(keys[index], 'InstallDir')\r\n  File \"C:\\AZ_DATEN\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\pylib\\gyp\\MSVSVersion.py\", line 177, in _RegistryGetValue\r\n    text = _RegistryQuery(key, value)\r\n  File \"C:\\AZ_DATEN\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\pylib\\gyp\\MSVSVersion.py\", line 162, in _RegistryQuery\r\n    text = _RegistryQueryBase('System32', key, value)\r\n  File \"C:\\AZ_DATEN\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\pylib\\gyp\\MSVSVersion.py\", line 130, in _RegistryQueryBase\r\n    p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)\r\n  File \"C:\\Python27\\lib\\subprocess.py\", line 710, in __init__\r\n    errread, errwrite)\r\n  File \"C:\\Python27\\lib\\subprocess.py\", line 958, in _execute_child\r\n    startupinfo)\r\nWindowsError: [Error 1260] Dieses Programm wurde durch eine Gruppenrichtlinie geblockt. Wenden Sie sich an den Systemadministrator, um weitere Informationen zu\r\nerhalten\r\ngyp ERR! configure error\r\ngyp ERR! stack Error: `gyp` failed with exit code: 1\r\ngyp ERR! stack     at ChildProcess.onCpExit (C:\\AZ_DATEN\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\lib\\configure.js:343:16)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:98:17)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810:12)\r\ngyp ERR! System Windows_NT 6.1.7601\r\ngyp ERR! command \"node\" \"C:\\\\AZ_DATEN\\\\nodejs\\\\node_modules\\\\npm\\\\node_modules\\\\node-gyp\\\\bin\\\\node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd C:\\AZ_DATEN\\ws\\meine_spa\\ui-route\r\ngyp ERR! node -v v0.10.31\r\ngyp ERR! node-gyp -v v1.0.2\r\ngyp ERR! not ok\r\n```\r\n"}}