Closed pupeno closed 7 years ago
I tried to install runas and it failed with this output:
C:\Users\pupeno\Documents\Dashman\clients>npm install runas > runas@3.1.1 install C:\Users\pupeno\Documents\Dashman\clients\node_modules\runas > node-gyp rebuild C:\Users\pupeno\Documents\Dashman\clients\node_modules\runas>if not defined npm_config_node_gyp (node "C:\Users\pupeno\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild ) gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "C:\Users\pupeno\AppData\Local\Programs\Python\Python36-32\python.EXE", you can set the PYTHON env variable. gyp ERR! stack at PythonFinder.failNoPython (C:\Users\pupeno\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19) gyp ERR! stack at PythonFinder.<anonymous> (C:\Users\pupeno\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:508:16) gyp ERR! stack at C:\Users\pupeno\AppData\Roaming\npm\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:114:15) gyp ERR! System Windows_NT 10.0.14393 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\pupeno\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\pupeno\Documents\Dashman\clients\node_modules\runas gyp ERR! node -v v7.8.0 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm WARN clients No repository field. npm WARN clients No license field. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! runas@3.1.1 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the runas@3.1.1 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\pupeno\AppData\Roaming\npm-cache\_logs\2017-06-12T19_01_57_700Z-debug.log C:\Users\pupeno\Documents\Dashman\clients>
I don't understand the error about Python:
C:\Users\pupeno\Documents\Dashman\clients>C:\Users\pupeno\AppData\Local\Programs\Python\Python36-32\python.EXE --version Python 3.6.1 C:\Users\pupeno\Documents\Dashman\clients>%PYTHON% --version Python 3.6.1 C:\Users\pupeno\Documents\Dashman\clients>
2017-06-12T19_01_57_700Z-debug.log contains:
0 info it worked if it ends with ok 1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', 1 verbose cli 'C:\\Users\\pupeno\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'install', 1 verbose cli 'runas' ] 2 info using npm@5.0.3 3 info using node@v7.8.0 4 verbose npm-session 3f79ff767b1acbc3 5 silly install loadCurrentTree 6 silly install readLocalPackageData 7 http fetch GET 200 https://registry.npmjs.org/runas 215ms 8 silly pacote tag manifest for runas@latest fetched in 256ms 9 silly install loadIdealTree 10 silly install cloneCurrentTreeToIdealTree 11 silly install loadShrinkwrap 12 silly install loadAllDepsIntoIdealTree 13 silly resolveWithNewModule runas@3.1.1 checking installable status 14 http fetch GET 200 https://registry.npmjs.org/nan 31ms 15 silly pacote range manifest for nan@2.x fetched in 53ms 16 silly resolveWithNewModule nan@2.6.2 checking installable status 17 silly currentTree clients 18 silly idealTree clients 18 silly idealTree +-- nan@2.6.2 18 silly idealTree `-- runas@3.1.1 19 silly install generateActionsToTake 20 silly diffTrees action count 2 21 silly diffTrees add nan@2.6.2 22 silly diffTrees add runas@3.1.1 23 silly decomposeActions action count 16 24 silly decomposeActions fetch nan@2.6.2 25 silly decomposeActions extract nan@2.6.2 26 silly decomposeActions preinstall nan@2.6.2 27 silly decomposeActions build nan@2.6.2 28 silly decomposeActions install nan@2.6.2 29 silly decomposeActions postinstall nan@2.6.2 30 silly decomposeActions finalize nan@2.6.2 31 silly decomposeActions refresh-package-json nan@2.6.2 32 silly decomposeActions fetch runas@3.1.1 33 silly decomposeActions extract runas@3.1.1 34 silly decomposeActions preinstall runas@3.1.1 35 silly decomposeActions build runas@3.1.1 36 silly decomposeActions install runas@3.1.1 37 silly decomposeActions postinstall runas@3.1.1 38 silly decomposeActions finalize runas@3.1.1 39 silly decomposeActions refresh-package-json runas@3.1.1 40 silly install executeActions 41 silly doSerial global-install 16 42 verbose correctMkdir C:\Users\pupeno\AppData\Roaming\npm-cache\_locks correctMkdir not in flight; initializing 43 verbose lock using C:\Users\pupeno\AppData\Roaming\npm-cache\_locks\staging-5ac6bd3e2a0f2b53.lock for C:\Users\pupeno\Documents\Dashman\clients\node_modules\.staging 44 silly doParallel extract 16 45 silly extract nan@2.6.2 46 silly pacote trying nan@https://registry.npmjs.org/nan/-/nan-2.6.2.tgz by hash: sha1-5P805slf37WuzAjeZZb0NgWn20U= 47 silly extract runas@3.1.1 48 silly pacote trying runas@https://registry.npmjs.org/runas/-/runas-3.1.1.tgz by hash: sha1-Ut1TjbDkF0U5lTWjRwkbpFzA6rA= 49 silly pacote data for sha1-5P805slf37WuzAjeZZb0NgWn20U= not present. Using manifest. 50 silly pacote data for sha1-Ut1TjbDkF0U5lTWjRwkbpFzA6rA= not present. Using manifest. 51 http fetch GET 200 https://registry.npmjs.org/nan/-/nan-2.6.2.tgz 84ms 52 http fetch GET 200 https://registry.npmjs.org/runas/-/runas-3.1.1.tgz 85ms 53 silly pacote runas@https://registry.npmjs.org/runas/-/runas-3.1.1.tgz extracted in 128ms 54 silly pacote nan@https://registry.npmjs.org/nan/-/nan-2.6.2.tgz extracted in 194ms 55 silly doReverseSerial remove 16 56 silly doSerial move 16 57 silly doSerial finalize 16 58 silly finalize C:\Users\pupeno\Documents\Dashman\clients\node_modules\runas 59 silly finalize C:\Users\pupeno\Documents\Dashman\clients\node_modules\nan 60 silly doParallel refresh-package-json 16 61 silly refresh-package-json C:\Users\pupeno\Documents\Dashman\clients\node_modules\runas 62 silly refresh-package-json C:\Users\pupeno\Documents\Dashman\clients\node_modules\nan 63 silly doParallel preinstall 16 64 silly preinstall runas@3.1.1 65 info lifecycle runas@3.1.1~preinstall: runas@3.1.1 66 silly preinstall nan@2.6.2 67 info lifecycle nan@2.6.2~preinstall: nan@2.6.2 68 silly lifecycle runas@3.1.1~preinstall: no script for preinstall, continuing 69 silly lifecycle nan@2.6.2~preinstall: no script for preinstall, continuing 70 silly doSerial build 16 71 silly build runas@3.1.1 72 info linkStuff runas@3.1.1 73 silly linkStuff runas@3.1.1 has C:\Users\pupeno\Documents\Dashman\clients\node_modules as its parent node_modules 74 verbose linkBins runas@3.1.1 75 verbose linkMans runas@3.1.1 76 silly build nan@2.6.2 77 info linkStuff nan@2.6.2 78 silly linkStuff nan@2.6.2 has C:\Users\pupeno\Documents\Dashman\clients\node_modules as its parent node_modules 79 verbose linkBins nan@2.6.2 80 verbose linkMans nan@2.6.2 81 silly doSerial global-link 16 82 silly doParallel update-linked 16 83 silly doSerial install 16 84 silly install runas@3.1.1 85 info lifecycle runas@3.1.1~install: runas@3.1.1 86 verbose lifecycle runas@3.1.1~install: unsafe-perm in lifecycle true 87 verbose lifecycle runas@3.1.1~install: PATH: C:\Users\pupeno\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin;C:\Users\pupeno\Documents\Dashman\clients\node_modules\runas\node_modules\.bin;C:\Users\pupeno\Documents\Dashman\clients\node_modules\.bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Broadcom\Broadcom 802.11 Network Adapter;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Redis\;C:\Program Files\nodejs\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Amazon\AWSCLI\;C:\Program Files\Git\cmd;C:\Program Files\Heroku\bin\;C:\Users\pupeno\AppData\Local\Programs\Python\Python36-32\Scripts\;C:\Users\pupeno\AppData\Local\Programs\Python\Python36-32\;C:\Users\pupeno\AppData\Local\Microsoft\WindowsApps;C:\Users\pupeno\AppData\Local\Programs\Git\cmd;C:\Users\pupeno\AppData\Roaming\npm;C:\Users\pupeno\.lein\bin;C:\Users\pupeno\.bin 88 verbose lifecycle runas@3.1.1~install: CWD: C:\Users\pupeno\Documents\Dashman\clients\node_modules\runas 89 silly lifecycle runas@3.1.1~install: Args: [ '/d /s /c', 'node-gyp rebuild' ] 90 silly lifecycle runas@3.1.1~install: Returned: code: 1 signal: null 91 info lifecycle runas@3.1.1~install: Failed to exec install script 92 verbose unlock done using C:\Users\pupeno\AppData\Roaming\npm-cache\_locks\staging-5ac6bd3e2a0f2b53.lock for C:\Users\pupeno\Documents\Dashman\clients\node_modules\.staging 93 warn clients No repository field. 94 warn clients No license field. 95 verbose stack Error: runas@3.1.1 install: `node-gyp rebuild` 95 verbose stack Exit status 1 95 verbose stack at EventEmitter.<anonymous> (C:\Users\pupeno\AppData\Roaming\npm\node_modules\npm\lib\utils\lifecycle.js:283:16) 95 verbose stack at emitTwo (events.js:106:13) 95 verbose stack at EventEmitter.emit (events.js:194:7) 95 verbose stack at ChildProcess.<anonymous> (C:\Users\pupeno\AppData\Roaming\npm\node_modules\npm\lib\utils\spawn.js:40:14) 95 verbose stack at emitTwo (events.js:106:13) 95 verbose stack at ChildProcess.emit (events.js:194:7) 95 verbose stack at maybeClose (internal/child_process.js:899:16) 95 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) 96 verbose pkgid runas@3.1.1 97 verbose cwd C:\Users\pupeno\Documents\Dashman\clients 98 verbose Windows_NT 10.0.14393 99 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\pupeno\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "runas" 100 verbose node v7.8.0 101 verbose npm v5.0.3 102 error code ELIFECYCLE 103 error errno 1 104 error runas@3.1.1 install: `node-gyp rebuild` 104 error Exit status 1 105 error Failed at the runas@3.1.1 install script. 105 error This is probably not a problem with npm. There is likely additional logging output above. 106 verbose exit [ 1, true ]
node-gyp requires Python v2.
I tried to install runas and it failed with this output:
I don't understand the error about Python:
2017-06-12T19_01_57_700Z-debug.log contains: