You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
neon ERR! ENOENT: no such file or directory, copyfile '/home/matt/dev/napi-demo/native/target/debug/libnapi_demo.so' -> '/home/matt/dev/napi-demo/native/index.node'
Although there is logging generating native/index.node, no such file is created during neon install or neon build.
However, these steps do produce the proper index.node file.
cd native
cargo build
After this, I can successfully run the demo using node ./lib/index.js
The text was updated successfully, but these errors were encountered:
There is one known issue with the updated neon-build crate. It breaks cargo caching on cargo build. It will always relink the binary. cargo check is not impacted. If this isn't acceptible, the only thing neon-build does now is output the shared lib to index.node. It can be removed and replaced by a script in your project that copies from the target directory.
@kjvalencik Thanks much. I'm on my way and since this appears to be a known issue, I'm closing it. Perhaps some of what you have just written would be a nice addition to the build instructions in #444
My environment is Ubuntu 20.04 with [email protected]. I created my first project with instructions from: #444
Produces the following output: https://gist.github.com/mattcollier/3a94710fa8c1e6fd0e7de139742b219d#file-log-txt-L36
here is the error:
Although there is logging
generating native/index.node
, no such file is created duringneon install
orneon build
.However, these steps do produce the proper
index.node
file.After this, I can successfully run the demo using
node ./lib/index.js
The text was updated successfully, but these errors were encountered: