bnoordhuis / node-buffertools

working with node.js buffers made easy
ISC License
205 stars 35 forks source link

Unable to install just "buffertools" on Windows 2012R2 64bit server. Added NPM debug file #81

Open msarm opened 8 years ago

msarm commented 8 years ago

Failed at the buffertools@2.1.4 install script 'node-gyp rebuild'.

-----------------NPM debug error -----------------------
0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli 'buffertools' ]
2 info using npm@3.10.3
3 info using node@v6.6.0
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 silly fetchPackageMetaData buffertools
8 silly fetchNamedPackageData buffertools
9 silly mapToRegistry name buffertools
10 silly mapToRegistry using default registry
11 silly mapToRegistry registry https://registry.npmjs.org/
12 silly mapToRegistry data Result {
12 silly mapToRegistry raw: 'buffertools',
12 silly mapToRegistry scope: null,
12 silly mapToRegistry escapedName: 'buffertools',
12 silly mapToRegistry name: 'buffertools',
12 silly mapToRegistry rawSpec: '',
12 silly mapToRegistry spec: 'latest',
12 silly mapToRegistry type: 'tag' }
13 silly mapToRegistry uri https://registry.npmjs.org/buffertools
14 verbose request uri https://registry.npmjs.org/buffertools
15 verbose request no auth needed
16 info attempt registry request try #1 at 2:49:17 PM
17 verbose request id d1295a7a4cda638b
18 verbose etag "7A3XM081RG5ECFPRPHGOV5CBV"
19 http request GET https://registry.npmjs.org/buffertools
20 http 304 https://registry.npmjs.org/buffertools
21 verbose headers { date: 'Fri, 23 Sep 2016 21:49:21 GMT',
21 verbose headers via: '1.1 varnish',
21 verbose headers 'cache-control': 'max-age=300',
21 verbose headers etag: '"7A3XM081RG5ECFPRPHGOV5CBV"',
21 verbose headers age: '96',
21 verbose headers connection: 'keep-alive',
21 verbose headers 'x-served-by': 'cache-lax8623-LAX',
21 verbose headers 'x-cache': 'HIT',
21 verbose headers 'x-cache-hits': '1',
21 verbose headers 'x-timer': 'S1474667361.862761,VS0,VE0',
21 verbose headers vary: 'Accept-Encoding' }
22 silly get cb [ 304,
22 silly get { date: 'Fri, 23 Sep 2016 21:49:21 GMT',
22 silly get via: '1.1 varnish',
22 silly get 'cache-control': 'max-age=300',
22 silly get etag: '"7A3XM081RG5ECFPRPHGOV5CBV"',
22 silly get age: '96',
22 silly get connection: 'keep-alive',
22 silly get 'x-served-by': 'cache-lax8623-LAX',
22 silly get 'x-cache': 'HIT',
22 silly get 'x-cache-hits': '1',
22 silly get 'x-timer': 'S1474667361.862761,VS0,VE0',
22 silly get vary: 'Accept-Encoding' } ]
23 verbose etag https://registry.npmjs.org/buffertools from cache
24 verbose get saving buffertools to C:\Users\msarm\AppData\Roaming\npm-cache\registry.npmjs.org\buffertools.cache.json
25 verbose correctMkdir C:\Users\msarm\AppData\Roaming\npm-cache correctMkdir not in flight; initializing
26 silly install normalizeTree
27 silly loadCurrentTree Finishing
28 silly loadIdealTree Starting
29 silly install loadIdealTree
30 silly cloneCurrentTree Starting
31 silly install cloneCurrentTreeToIdealTree
32 silly cloneCurrentTree Finishing
33 silly loadShrinkwrap Starting
34 silly install loadShrinkwrap
35 silly loadShrinkwrap Finishing
36 silly loadAllDepsIntoIdealTree Starting
37 silly install loadAllDepsIntoIdealTree
38 silly resolveWithNewModule buffertools@2.1.4 checking installable status
39 silly cache add args [ 'buffertools', null ]
40 verbose cache add spec buffertools
41 silly cache add parsed spec Result {
41 silly cache add raw: 'buffertools',
41 silly cache add scope: null,
41 silly cache add escapedName: 'buffertools',
41 silly cache add name: 'buffertools',
41 silly cache add rawSpec: '',
41 silly cache add spec: 'latest',
41 silly cache add type: 'tag' }
42 silly addNamed buffertools@latest
43 verbose addNamed "latest" is being treated as a dist-tag for buffertools
44 info addNameTag [ 'buffertools', 'latest' ]
45 silly mapToRegistry name buffertools
46 silly mapToRegistry using default registry
47 silly mapToRegistry registry https://registry.npmjs.org/
48 silly mapToRegistry data Result {
48 silly mapToRegistry raw: 'buffertools',
48 silly mapToRegistry scope: null,
48 silly mapToRegistry escapedName: 'buffertools',
48 silly mapToRegistry name: 'buffertools',
48 silly mapToRegistry rawSpec: '',
48 silly mapToRegistry spec: 'latest',
48 silly mapToRegistry type: 'tag' }
49 silly mapToRegistry uri https://registry.npmjs.org/buffertools
50 verbose addNameTag registry:https://registry.npmjs.org/buffertools not in flight; fetching
51 verbose get https://registry.npmjs.org/buffertools not expired, no request
52 silly addNameTag next cb for buffertools with tag latest
53 silly addNamed buffertools@2.1.4
54 verbose addNamed "2.1.4" is a plain semver version for buffertools
55 silly cache afterAdd buffertools@2.1.4
56 verbose afterAdd C:\Users\msarm\AppData\Roaming\npm-cache\buffertools\2.1.4\package\package.json not in flight; writing
57 verbose correctMkdir C:\Users\msarm\AppData\Roaming\npm-cache correctMkdir not in flight; initializing
58 verbose afterAdd C:\Users\msarm\AppData\Roaming\npm-cache\buffertools\2.1.4\package\package.json written
59 silly loadAllDepsIntoIdealTree Finishing
60 silly loadIdealTree Finishing
61 silly currentTree npm
62 silly idealTree npm
62 silly idealTree -- buffertools@2.1.4 63 silly generateActionsToTake Starting 64 silly install generateActionsToTake 65 silly generateActionsToTake Finishing 66 silly diffTrees action count 1 67 silly diffTrees add buffertools@2.1.4 68 silly decomposeActions action count 8 69 silly decomposeActions fetch buffertools@2.1.4 70 silly decomposeActions extract buffertools@2.1.4 71 silly decomposeActions test buffertools@2.1.4 72 silly decomposeActions preinstall buffertools@2.1.4 73 silly decomposeActions build buffertools@2.1.4 74 silly decomposeActions install buffertools@2.1.4 75 silly decomposeActions postinstall buffertools@2.1.4 76 silly decomposeActions finalize buffertools@2.1.4 77 silly executeActions Starting 78 silly install executeActions 79 silly doSerial global-install 0 80 silly doParallel fetch 1 81 verbose correctMkdir C:\Users\msarm\AppData\Roaming\npm-cache\_locks correctMkdir not in flight; initializing 82 verbose lock using C:\Users\msarm\AppData\Roaming\npm-cache\_locks\staging-a9d188be3f24baff.lock for C:\Users\msarm\AppData\Roaming\npm\node_modules\.staging 83 silly doParallel extract 1 84 silly extract buffertools@2.1.4 85 verbose unbuild node_modules\.staging\buffertools-e1c7ca70 86 silly gentlyRm C:\Users\msarm\AppData\Roaming\npm\node_modules\.staging\buffertools-e1c7ca70 is being purged from base C:\Users\msarm\AppData\Roaming\npm 87 verbose gentlyRm don't care about contents; nuking C:\Users\msarm\AppData\Roaming\npm\node_modules\.staging\buffertools-e1c7ca70 88 verbose tar unpack C:\Users\msarm\AppData\Roaming\npm-cache\buffertools\2.1.4\package.tgz 89 verbose tar unpacking to C:\Users\msarm\AppData\Roaming\npm\node_modules\.staging\buffertools-e1c7ca70 90 silly gentlyRm C:\Users\msarm\AppData\Roaming\npm\node_modules\.staging\buffertools-e1c7ca70 is being purged 91 verbose gentlyRm don't care about contents; nuking C:\Users\msarm\AppData\Roaming\npm\node_modules\.staging\buffertools-e1c7ca70 92 silly gunzTarPerm modes [ '777', '666' ] 93 silly gunzTarPerm extractEntry package.json 94 silly gunzTarPerm modified mode [ 'package.json', 436, 438 ] 95 silly gunzTarPerm extractEntry .npmignore 96 silly gunzTarPerm modified mode [ '.npmignore', 436, 438 ] 97 silly gunzTarPerm extractEntry README.md 98 silly gunzTarPerm modified mode [ 'README.md', 436, 438 ] 99 silly gunzTarPerm extractEntry LICENSE 100 silly gunzTarPerm modified mode [ 'LICENSE', 436, 438 ] 101 silly gunzTarPerm extractEntry buffertools.js 102 silly gunzTarPerm modified mode [ 'buffertools.js', 436, 438 ] 103 silly gunzTarPerm extractEntry test.js 104 silly gunzTarPerm modified mode [ 'test.js', 436, 438 ] 105 silly gunzTarPerm extractEntry binding.gyp 106 silly gunzTarPerm modified mode [ 'binding.gyp', 436, 438 ] 107 silly gunzTarPerm extractEntry buffertools.cc 108 silly gunzTarPerm modified mode [ 'buffertools.cc', 436, 438 ] 109 silly gunzTarPerm extractEntry BoyerMoore.h 110 silly gunzTarPerm modified mode [ 'BoyerMoore.h', 436, 438 ] 111 silly gunzTarPerm extractEntry AUTHORS 112 silly gunzTarPerm modified mode [ 'AUTHORS', 436, 438 ] 113 silly gunzTarPerm extractEntry .mailmap 114 silly gunzTarPerm modified mode [ '.mailmap', 436, 438 ] 115 silly gentlyRm C:\Users\msarm\AppData\Roaming\npm\node_modules\.staging\buffertools-e1c7ca70\node_modules is being purged 116 verbose gentlyRm don't care about contents; nuking C:\Users\msarm\AppData\Roaming\npm\node_modules\.staging\buffertools-e1c7ca70\node_modules 117 silly doParallel preinstall 1 118 silly preinstall buffertools@2.1.4 C:\Users\msarm\AppData\Roaming\npm\node_modules\.staging\buffertools-e1c7ca70 119 info lifecycle buffertools@2.1.4~preinstall: buffertools@2.1.4 120 silly lifecycle buffertools@2.1.4~preinstall: no script for preinstall, continuing 121 silly doReverseSerial remove 0 122 silly doSerial move 0 123 silly doSerial finalize 1 124 silly finalize C:\Users\msarm\AppData\Roaming\npm\node_modules\buffertools 125 silly doSerial build 1 126 silly build buffertools@2.1.4 127 info linkStuff buffertools@2.1.4 128 silly linkStuff buffertools@2.1.4 has C:\Users\msarm\AppData\Roaming\npm\node_modules as its parent node_modules 129 silly linkStuff buffertools@2.1.4 is part of a global install 130 silly linkStuff buffertools@2.1.4 is installed into a global node_modules 131 silly linkStuff buffertools@2.1.4 is installed into the top-level global node_modules 132 verbose linkBins buffertools@2.1.4 133 verbose linkMans buffertools@2.1.4 134 silly doSerial global-link 0 135 silly doParallel update-linked 0 136 silly doSerial install 1 137 silly install buffertools@2.1.4 C:\Users\msarm\AppData\Roaming\npm\node_modules\.staging\buffertools-e1c7ca70 138 info lifecycle buffertools@2.1.4~install: buffertools@2.1.4 139 verbose lifecycle buffertools@2.1.4~install: unsafe-perm in lifecycle true 140 verbose lifecycle buffertools@2.1.4~install: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;C:\Users\msarm\AppData\Roaming\npm\node_modules\buffertools\node_modules\.bin;C:\Users\msarm\AppData\Roaming\npm\node_modules\.bin;C:\Program Files\nodejs;C:\Program Files (x86)\Git\cmd;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Git\cmd;C:\Program Files\nodejs\;C:\Users\msarm\AppData\Roaming\npm 141 verbose lifecycle buffertools@2.1.4~install: CWD: C:\Users\msarm\AppData\Roaming\npm\node_modules\buffertools 142 silly lifecycle buffertools@2.1.4~install: Args: [ '/d /s /c', 'node-gyp rebuild' ] 143 silly lifecycle buffertools@2.1.4~install: Returned: code: 1 signal: null 144 info lifecycle buffertools@2.1.4~install: Failed to exec install script 145 verbose unlock done using C:\Users\msarm\AppData\Roaming\npm-cache\_locks\staging-a9d188be3f24baff.lock for C:\Users\msarm\AppData\Roaming\npm\node_modules\.staging 146 silly rollbackFailedOptional Starting 147 silly rollbackFailedOptional Finishing 148 silly runTopLevelLifecycles Starting 149 silly runTopLevelLifecycles Finishing 150 silly install printInstalled 151 verbose stack Error: buffertools@2.1.4 install:node-gyp rebuild 151 verbose stack Exit status 1 151 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:242:16) 151 verbose stack at emitTwo (events.js:106:13) 151 verbose stack at EventEmitter.emit (events.js:191:7) 151 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14) 151 verbose stack at emitTwo (events.js:106:13) 151 verbose stack at ChildProcess.emit (events.js:191:7) 151 verbose stack at maybeClose (internal/child_process.js:877:16) 151 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) 152 verbose pkgid buffertools@2.1.4 153 verbose cwd C:\Program Files (x86)\Git 154 error Windows_NT 6.2.9200 155 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "buffertools" 156 error node v6.6.0 157 error npm v3.10.3 158 error code ELIFECYCLE 159 error buffertools@2.1.4 install:node-gyp rebuild`
159 error Exit status 1
160 error Failed at the buffertools@2.1.4 install script 'node-gyp rebuild'.
160 error Make sure you have the latest version of node.js and npm installed.
160 error If you do, this is most likely a problem with the buffertools package,
160 error not with npm itself.
160 error Tell the author that this fails on your system:
160 error node-gyp rebuild
160 error You can get information on how to open an issue for this project with:
160 error npm bugs buffertools
160 error Or if that isn't available, you can get their info via:
160 error npm owner ls buffertools
160 error There is likely additional logging output above.
161 verbose exit [ 1, true ]
bnoordhuis commented 8 years ago

Can you post the console output? npm doesn't include that in the log file but it contains the actual build error.

pwlprg commented 7 years ago

Fails for me too:

node-gyp rebuild

gyp info it worked if it ends with ok
gyp info using node-gyp@3.2.1
gyp info using node@7.5.0 | win32 | x64
gyp info spawn C:\soft\Python27\python.EXE
gyp info spawn args [ 'C:\\Users\\Pawel\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'msvs',
gyp info spawn args   '-G',
gyp info spawn args   'msvs_version=auto',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\dev\\XXX\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\Pawel\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\Pawel\\.node-gyp\\7.5.0\\include\\node\\common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=C:\\Users\\Pawel\\.node-gyp\\7.5.0',
gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\Pawel\\AppData\\Roaming\\npm\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=node.lib',
gyp info spawn args   '-Dmodule_root_dir=C:\\dev\\XXX',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'C:\\dev\\XXX\\build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp: binding.gyp not found (cwd: C:\dev\XXX) while trying to load binding.gyp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (C:\Users\Pawel\AppData\Roaming\npm\node_modules\node-gyp\lib\configure.js:305:16)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:192:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Pawel\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\dev\XXX
gyp ERR! node -v v7.5.0
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok 

npm i buffertools


> buffertools@2.1.4 install C:\dev\XXX\node_modules\buffertools
> node-gyp rebuild

C:\dev\XXX\node_modules\buffertools>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" rebuild ) 
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
TRACKER : error TRK0005: Failed to locate: "CL.exe". Nie mo�na odnale�� okre�lonego pliku. [C:\dev\XXX\node_modules\buffertools\build\buffertools.vcxproj]

gyp ERR! build error 
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:192:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\dev\XXX\node_modules\buffertools
gyp ERR! node -v v7.5.0
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.17: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "i" "buffertools"
npm ERR! node v7.5.0
npm ERR! npm  v4.1.2
npm ERR! code ELIFECYCLE

npm ERR! buffertools@2.1.4 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the buffertools@2.1.4 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the buffertools package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs buffertools
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls buffertools
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\dev\XXX\npm-debug.log
bnoordhuis commented 7 years ago

@pwlprg TRK0005 means something is wrong with your setup. Do you have Visual Studio 2015 or MS Build Tools installed?

pwlprg commented 7 years ago

Thanks! I had installed Visual Studio 2015, but didn't have package Common tools for Visual C++ 2015. Thanks to your hint, i fixed my setup :) Buffertools installed without problems now.

https://github.com/nodejs/node-gyp/pull/1111