Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memwatch-next build error #26

Open
lexa12323 opened this issue Jan 19, 2017 · 0 comments
Open

memwatch-next build error #26

lexa12323 opened this issue Jan 19, 2017 · 0 comments

Comments

@lexa12323
Copy link

D:\reps\mysite>npm -v
4.0.5
D:\reps\mysite>node -v
v7.4.0

commands and answers in cmd below
D:\reps\mysite>yarn
yarn install v0.19.1
[1/4] Resolving packages...
[2/4] Fetching packages...
warning [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check.
Excluding it from installation.
[3/4] Linking dependencies...
warning "[email protected]" has unmet peer dependency "webpack@1 || 2 || ^2.1.
0-beta || ^2.2.0-rc".
[4/4] Building fresh packages...
[1/1] ? memwatch-next: not ok
[-/1] ? waiting...
[-/1] ? waiting...
[-/1] ? waiting...
error D:\reps\mysite\node_modules\memwatch-next: Command failed.
Exit code: 1
Command: C:\Windows\system32\cmd.exe
Arguments: /d /s /c node-gyp rebuild
Directory: D:\reps\mysite\node_modules\memwatch-next
Output:
D:\reps\mysite\node_modules\memwatch-next>if not defined npm_config_node_gyp (
node "C:\Program Files (x86)\Yarn\bin\node-gyp-bin\....\node_modules\node-gyp
bin\node-gyp.js" rebuild ) else (node rebuild )
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp http GET https://nodejs.org/download/release/v7.4.0/node-v7.4.0-headers.tar.
gz
gyp http 200 https://nodejs.org/download/release/v7.4.0/node-v7.4.0-headers.tar.
gz
gyp http GET https://nodejs.org/download/release/v7.4.0/SHASUMS256.txt
gyp http GET https://nodejs.org/download/release/v7.4.0/win-x64/node.lib
gyp http GET https://nodejs.org/download/release/v7.4.0/win-x86/node.lib
gyp http 200 https://nodejs.org/download/release/v7.4.0/SHASUMS256.txt
gyp http 200 https://nodejs.org/download/release/v7.4.0/win-x64/node.lib
gyp http 200 https://nodejs.org/download/release/v7.4.0/win-x86/node.lib
gyp info spawn C:\Python27\python.EXE
gyp info spawn args [ 'C:\Program Files (x86)\Yarn\node_modules\node-gyp\gy
p\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 'D:\reps\mysite\node_modules\memwatch-next\build\c
onfig.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Program Files (x86)\Yarn\node_modules\node-gyp\ad
don.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\Администратор\.node-gyp\7.4.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\Администратор\.node-gyp\7.4.
0',
gyp info spawn args '-Dnode_gyp_dir=C:\Program Files (x86)\Yarn\node_module
s\node-gyp',
gyp info spawn args '-Dnode_lib_file=node.lib',
gyp info spawn args '-Dmodule_root_dir=D:\reps\mysite\node_modules\memwa
tch-next',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'D:\reps\mysite\node_modules\memwatch-next\build',
gyp info spawn args '-Goutput_dir=.' ]
Traceback (most recent call last):
File "C:\Program Files (x86)\Yarn\node_modules\node-gyp\gyp\gyp_main.py", line
16, in
sys.exit(gyp.script_main())
File "C:\Program Files (x86)\Yarn\node_modules\node-gyp\gyp\pylib\gyp_init_
.py", line 545, in script_main
return main(sys.argv[1:])
File "C:\Program Files (x86)\Yarn\node_modules\node-gyp\gyp\pylib\gyp_init_
.py", line 538, in main
return gyp_main(args)
File "C:\Program Files (x86)\Yarn\node_modules\node-gyp\gyp\pylib\gyp_init_
.py", line 514, in gyp_main
options.duplicate_basename_check)
File "C:\Program Files (x86)\Yarn\node_modules\node-gyp\gyp\pylib\gyp_init_
.py", line 130, in Load
params['parallel'], params['root_targets'])
File "C:\Program Files (x86)\Yarn\node_modules\node-gyp\gyp\pylib\gyp\input.py
", line 2778, in Load
variables, includes, depth, check, True)
File "C:\Program Files (x86)\Yarn\node_modules\node-gyp\gyp\pylib\gyp\input.py
", line 420, in LoadTargetBuildFile
build_file_data, PHASE_EARLY, variables, build_file_path)
File "C:\Program Files (x86)\Yarn\node_modules\node-gyp\gyp\pylib\gyp\input.py
", line 1217, in ProcessVariablesAndConditionsInDict
variables, build_file, 'variables')
File "C:\Program Files (x86)\Yarn\node_modules\node-gyp\gyp\pylib\gyp\input.py
", line 1228, in ProcessVariablesAndConditionsInDict
'only, found ' + expanded.class.name + ' for ' + key)
ValueError: Variable expansion in this context permits str and int only, found l
ong for lastUpdateCheck 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:\Program Files (x86)\Yarn\node_mo
dules\node-gyp\lib\configure.js:308:16)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces
s.js:215:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files (x86)
\Yarn\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd D:\reps\mysite\node_modules\memwatch-next
gyp ERR! node -v v7.4.0
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this
command.

D:\reps\mysite>npm install memwatch-next

[email protected] install D:\reps\mysite\node_modules\memwatch-next
node-gyp rebuild

D:\reps\mysite\node_modules\memwatch-next>if not defined npm_config_node_gyp (
node "C:\Users\WebProgAlexeyG\nvm\v7.4.0\node_modules\npm\bin\node-gyp-bin\...
.\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
Сборка проектов в этом решении по одному. Чтобы включить параллельную сборку, до
бавьте параметр "/m".
heapdiff.cc
init.cc
memwatch.cc
util.cc
..\src\init.cc(5): fatal error C1083: Cannot open include file: 'v8.h': No such
file or directory [D:\reps\mysite\node_modules\memwatch-next\build\memwatch.
vcxproj]
win_delay_load_hook.cc
d:\reps\mysite\node_modules\memwatch-next\src\memwatch.hh(8): fatal error C10
83: Cannot open include file: 'node.h': No such file or directory (compiling so
urce file ..\src\memwatch.cc) [D:\reps\mysite\node_modules\memwatch-next\buil
d\memwatch.vcxproj]
d:\reps\mysite\node_modules\memwatch-next\src\heapdiff.hh(8): fatal error C10
83: Cannot open include file: 'v8.h': No such file or directory (compiling sour
ce file ..\src\heapdiff.cc) [D:\reps\mysite\node_modules\memwatch-next\build
memwatch.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe fail
ed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\WebProgAlexeyG\nvm\v7.4.0\no
de_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:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces
s.js:215:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\WebProgAlexey
G\nvm\v7.4.0\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "re
build"
gyp ERR! cwd D:\reps\mysite\node_modules\memwatch-next
gyp ERR! node -v v7.4.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\ch
okidar\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 WARN [email protected] requires a peer of webpack@1 || 2 || ^2.1.0-beta ||
^2.2.0-rc but none was installed.
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" "install" "memwatch-next"
npm ERR! node v7.4.0
npm ERR! npm v4.0.5
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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 memwatch-next 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 memwatch-next
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls memwatch-next
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! D:\reps\mysite\npm-debug.log

npm-debug.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant