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

不兼容 node 8.x 版本? #6

Open
dickeylth opened this issue Apr 26, 2018 · 1 comment
Open

不兼容 node 8.x 版本? #6

dickeylth opened this issue Apr 26, 2018 · 1 comment

Comments

@dickeylth
Copy link

~/dev/github/node-bsdiff(master ✔) tnpm i
✔ Installed 0 packages
✔ Linked 0 latest versions
  CXX(target) Release/obj.target/bsdiff/src/main.o
../src/main.cc:8:10: fatal error: 'cmemory' file not found
#include <cmemory>
         ^~~~~~~~~
1 error generated.
make: *** [Release/obj.target/bsdiff/src/main.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/tnpm/node_modules/[email protected]@node-gyp/lib/build.js:258:23)
gyp ERR! stack     at emitTwo (events.js:126:13)
gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Darwin 17.5.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/tnpm/node_modules/[email protected]@npminstall/node-gyp-bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/dickeylth/dev/github/node-bsdiff
gyp ERR! node -v v8.11.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
✖ Install fail! Error: post install error, please remove node_modules before retry!
Run "sh -c node-gyp rebuild" error, exit code 1
Error: post install error, please remove node_modules before retry!
Run "sh -c node-gyp rebuild" error, exit code 1
    at ChildProcess.proc.on.code (/usr/local/lib/node_modules/tnpm/node_modules/[email protected]@runscript/index.js:74:21)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
npminstall version: 3.5.0
npminstall args: /usr/local/bin/node /usr/local/lib/node_modules/tnpm/node_modules/[email protected]@npminstall/bin/install.js --tmp=/Users/dickeylth/.tnpm_tmp --no-proxy --disturl=https://tnpm-hz.oss-cn-hangzhou.aliyuncs.com/dist/node --userconfig=/Users/dickeylth/.tnpmrc --registry=http://registry.npm.alibaba-inc.com --china --prefix=/usr/local --forbidden-licenses=AGPL,CPAL,OSL --fix-bug-versions
[tnpm] subprocess:/usr/local/lib/node_modules/tnpm/node_modules/[email protected]@npminstall/bin/install.js exit code: 1, signal: null
[tnpm] mainprocess exit code: 1
@ghost
Copy link

ghost commented Apr 3, 2019

fork 一份,把 cmemory 改成 memory.h
或者直接运行 npm install swiftneko/node-bsdiff

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