最近在阅读<<node.js来一打c++扩展>>, 在运行第6个demo时报错, 望各位大佬指出哪里错了以及怎么改.
以下是报错内容
$ npx node-gyp build
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/home/ruinb0w/Lab/node/nyaa-nodejs-demo/6. mapped property interceptor/build'
make: *** No rule to make target 'Release/obj.target/mbedtls/../deps/mbedtls/library/debug.o', needed by 'Release/obj.target/mbedtls.a'. Stop.
make: Leaving directory '/home/ruinb0w/Lab/node/nyaa-nodejs-demo/6. mapped property interceptor/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/ruinb0w/.nvm/versions/node/v6.9.4/lib/node_modules/node-gyp/lib/build.js:285: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_process.js:215:12)
gyp ERR! System Linux 5.10.7-3-MANJARO
gyp ERR! command "/home/ruinb0w/.nvm/versions/node/v6.9.4/bin/node" "/home/ruinb0w/.nvm/versions/node/v6.9.4/bin/node-gyp" "build"
gyp ERR! cwd /home/ruinb0w/Lab/node/nyaa-nodejs-demo/6. mapped property interceptor
gyp ERR! node -v v6.9.4
gyp ERR! node-gyp -v v3.6.0
gyp ERR! not ok