Skip to content

Instantly share code, notes, and snippets.

@cfobel
Created September 19, 2017 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cfobel/c8c2788ee166b607e55db3fea303d13f to your computer and use it in GitHub Desktop.
Save cfobel/c8c2788ee166b607e55db3fea303d13f to your computer and use it in GitHub Desktop.
Error building `nodejs-feedstock` recipe for Node 8.2.1

Error building nodejs-feedstock recipe for Node 8.2.1:

1505844854503\work\node-v
8.2.1\cctest.vcxproj]
C:\bld\nodejs_1505844854503\work\node-v8.2.1\deps\v8\include\v8-inspector.h(80): warning C4251: 'v8_inspector::V8ContextInfo::context': class 'v8::Local<v8::C
ontext>' needs to have dll-interface to be used by clients of class 'v8_inspector::V8ContextInfo' (compiling source file src\inspector_io.cc)c:\bld\nodejs_150
5844854503\work\node-v8.2.1\src\base64.h(76): warning C4003: not enough actual parameters for macro 'V' (compiling source file src\inspector_socket.cc) [C:\bl
d\nodejs_1505844854503\work\node-v8.2.1\cctest.vcxproj]

  c:\bld\nodejs_1505844854503\work\node-v8.2.1\src\inspector_agent.h(85): note: see declaration of 'v8::Local<v8::Context>' (compiling source file src\inspect
  or_io.cc)
  node_crypto.cc
  node_crypto_bio.cc
  node_crypto_clienthello.cc
  tls_wrap.cc
  node_win32_etw_provider.cc
src\node_crypto.cc(5619): warning C4244: 'argument': conversion from 'const int64_t' to '::size_t', possible loss of data [C:\bld\nodejs_1505844854503\work\no
de-v8.2.1\cctest.vcxproj]
src\node_crypto.cc(5625): warning C4244: 'argument': conversion from 'const int64_t' to '::size_t', possible loss of data [C:\bld\nodejs_1505844854503\work\no
de-v8.2.1\cctest.vcxproj]
src\node_crypto.cc(5667): warning C4244: 'argument': conversion from 'int64_t' to '::size_t', possible loss of data [C:\bld\nodejs_1505844854503\work\node-v8.
2.1\cctest.vcxproj]
  node_dtrace.cc
  node_win32_perfctr_provider.cc
  node_counters.cc
  backtrace_win32.cc
C:\bld\nodejs_1505844854503\work\node-v8.2.1\tools\msvs\genfiles\node_perfctr_provider.h(50): warning C4838: conversion from 'unsigned long' to 'LONG' require
s a narrowing conversion (compiling source file src\node_win32_perfctr_provider.cc) [C:\bld\nodejs_1505844854503\work\node-v8.2.1\cctest.vcxproj]
     Creating library C:\bld\nodejs_1505844854503\work\node-v8.2.1\Release\cctest.lib and object C:\bld\nodejs_1505844854503\work\node-v8.2.1\Release\cctest.e
  xp
  Generating code
c:\bld\nodejs_1505844854503\work\node-v8.2.1\src\string_bytes.cc(767): warning C4715: 'node::StringBytes::Encode': not all control paths return a value [C:\bl
d\nodejs_1505844854503\work\node-v8.2.1\cctest.vcxproj]
  Finished generating code
  cctest.vcxproj -> C:\bld\nodejs_1505844854503\work\node-v8.2.1\Release\\cctest.exe
  cctest.vcxproj -> C:\bld\nodejs_1505844854503\work\node-v8.2.1\Release\cctest.pdb (Full PDB)
        1 file(s) copied.
module.js:487
    throw err;
    ^

Error: Cannot find module 'C:\bld\nodejs_1505844854503\work\node-v8.2.1\deps\npm\cli.js'
    at Function.Module._resolveFilename (module.js:485:15)
    at Function.Module._load (module.js:437:25)
    at Function.Module.runMain (module.js:605:10)
    at startup (bootstrap_node.js:158:16)
    at bootstrap_node.js:575:3
Traceback (most recent call last):
  File "C:\Users\chris\Miniconda2\Scripts\conda-build-script.py", line 5, in <module>
    sys.exit(conda_build.cli.main_build.main())
  File "C:\Users\chris\Miniconda2\lib\site-packages\conda_build\cli\main_build.py", line 342, in main
    execute(sys.argv[1:])
  File "C:\Users\chris\Miniconda2\lib\site-packages\conda_build\cli\main_build.py", line 333, in execute
    noverify=args.no_verify)
  File "C:\Users\chris\Miniconda2\lib\site-packages\conda_build\api.py", line 97, in build
    need_source_download=need_source_download, config=config)
  File "C:\Users\chris\Miniconda2\lib\site-packages\conda_build\build.py", line 1524, in build_tree
    config=config)
  File "C:\Users\chris\Miniconda2\lib\site-packages\conda_build\build.py", line 1114, in build
    windows.build(m, build_file, config=config)
  File "C:\Users\chris\Miniconda2\lib\site-packages\conda_build\windows.py", line 231, in build
    check_call_env(cmd, cwd=src_dir)
  File "C:\Users\chris\Miniconda2\lib\site-packages\conda_build\utils.py", line 628, in check_call_env
    return _func_defaulting_env_to_os_environ(subprocess.check_call, *popenargs, **kwargs)
  File "C:\Users\chris\Miniconda2\lib\site-packages\conda_build\utils.py", line 624, in _func_defaulting_env_to_os_environ
    return func(_args, **kwargs)
  File "C:\Users\chris\Miniconda2\lib\subprocess.py", line 186, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmd.exe', '/c', 'bld.bat']' returned non-zero exit status 1
@cfobel
Copy link
Author

cfobel commented Sep 19, 2017

This seems like it should work for the recipe:

if "%ARCH%"=="32" (
   set PLATFORM=x86
) else (
  set PLATFORM=x64
)

call vcbuild.bat nosign release %PLATFORM%

COPY Release\node.exe %LIBRARY_BIN%\node.exe

%LIBRARY_BIN%\node.exe deps\npm\bin\npm-cli.js install npm -gf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment