digitalinfinity / generator-napi-module Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi,
I'm trying to create a project with this generator and getting this error:
> node-gyp rebuild
SOLINK_MODULE(target) Release/nothing.node
CXX(target) Release/obj.target/napi-test-native/src/napi_test.o
In file included from ../src/napi_test.cc:1:
In file included from ../src/napi_test.h:3:
In file included from /Users/divan/src/test/napi/node_modules/node-addon-api/napi.h:1439:
/Users/divan/src/test/napi/node_modules/node-addon-api/napi-inl.h:415:24: error: use of undeclared
identifier 'napi_create_number'; did you mean 'napi_create_symbol'?
napi_status status = napi_create_number(env, val, &value);
^~~~~~~~~~~~~~~~~~
napi_create_symbol
/Users/divan/.node-gyp/8.9.1/include/node/node_api.h:156:25: note: 'napi_create_symbol' declared here
NAPI_EXTERN napi_status napi_create_symbol(napi_env env,
^
In file included from ../src/napi_test.cc:1:
In file included from ../src/napi_test.h:3:
In file included from /Users/divan/src/test/napi/node_modules/node-addon-api/napi.h:1439:
/Users/divan/src/test/napi/node_modules/node-addon-api/napi-inl.h:415:48: error: cannot initialize a
parameter of type 'napi_value' (aka 'napi_value__ *') with an lvalue of type 'double'
napi_status status = napi_create_number(env, val, &value);
^~~
/Users/divan/.node-gyp/8.9.1/include/node/node_api.h:157:55: note: passing argument to parameter
'description' here
napi_value description,
^
full output here:
https://gist.github.com/divan/fce9d79fcfe2c7460802ade0ca9af983
Node version 8.9.1
Please, let me know if I need to provide more information about system to reproduce this.
with the yo napi-module command the bindin.gyp file contains
'cflags!': [ '-fno-exceptions' ], 'cflags_cc!': [ '-fno-exceptions' ],
wondering the meaning of ! after cflags and cflags_cc. Is that a typo?
This template install a hopelessly outdated node-addon-api
version - 1.1.0.
The current output is pretty complex for a first-time user, can we add an option to make a simpler "Hello World" style module?
I am trying to run yo napi-module unattended and would like to be able to pass in parameters somehow for the prompted questions.
Thanks!
Moving over to here so as not to spam the n-api repo.
I'm getting a build failure on windows with the following logs. Any ideas?
https://gist.github.com/mateodelnorte/821335aeb1d4e6a4dfdb594f0386dc97
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.