Open thyecust opened 3 years ago
I can fix it by adding a path.join
function copyFauxAddon (mode, callback) {
copy(path.join(__dirname, 'faux', 'myaddon.cc'), path.join(copyFauxTempDir, "myaddon.cc"), { overwrite: true }, function (err) {
if (err) { return callback(err) }
callback(null, true)
})
}
It can be compiled but still can't be required by exercise.js
. Do you have a plan to support windows and cmd?
I have made some modification, you can see it in #100.
Now the verify result is
PS C:\Users\thy\Documents\goingnative\goingnative> node .\bin\goingnative verify myaddon1
✓
package.json contains "gypfile": true
✓
binding.gyp includes a "myaddon" target
✓
binding.gyp includes "myaddon.cc" as a source file
✓
binding.gyp includes a correct NAN include statement
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“-m”开关。
myaddon.cc
win_delay_load_hook.cc
正在创建库 C:\Users\thy\Documents\goingnative\goingnative\~test-addon-faux.3782\build\Release\myaddon.lib 和对象 C:\Users\thy\Documents\goingnative\goingnative\
~test-addon-faux.3782\build\Release\myaddon.exp
正在生成代码
Previous IPDB not found, fall back to full compilation.
All 69 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
已完成代码的生成
myaddon.vcxproj -> C:\Users\thy\Documents\goingnative\goingnative\~test-addon-faux.3782\build\Release\\myaddon.node
C:\Users\thy\Documents\goingnative\goingnative\~test-addon-faux.3782\build\Release\myaddon
✗
JavaScript code loads addon and invokes print() method
To https:
I'm looking forward to your detailed help.
I get this error in part two but didn't find any difference between my code and solution
My code:
index.js