Hi,
I am trying to run npm install
on arm64 and it gives me the following error, 5.4.1 worked fine.
...
e[0me[91m Compiling napi v2.13.2
e[0me[91m Compiling futures v0.3.28
e[0me[91m Compiling napi-derive v2.13.0
e[0mFailed to manipulate type def file: Os { code: 2, kind: NotFound, message: "No such file or directory" }
e[91merror[E0433]: failed to resolve: use of undeclared type `FromNapiValue`
--> src/request.rs:22:1
|
22 | #[napi]
| ^^^^^^^ use of undeclared type `FromNapiValue`
|
= note: this error originates in the attribute macro `napi` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider importing this trait
|
15 + use napi::bindgen_prelude::FromNapiValue;
|
e[0me[91mFor more information about this error, try `rustc --explain E0433`.
e[0me[91merror: could not compile `matrix-sdk-crypto-nodejs` (lib) due to previous error
e[0mInternal Error: Command failed: cargo build
at checkExecSyncError (child_process.js:790:11)
at Object.execSync (child_process.js:863:15)
at BuildCommand.<anonymous> (/build/bundle/programs/server/npm/node_modules/@napi-rs/cli/scripts/index.js:14602:26)
at Generator.next (<anonymous>)
at fulfilled (/build/bundle/programs/server/npm/node_modules/@napi-rs/cli/scripts/index.js:3423:58)
e[91merror Command failed with exit code 1.
e[0minfo Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
e[91merror Command failed with exit code 1.
e[0minfo Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
e[91mnpme[0me[91m e[0me[91mERR! code ELIFECYCLE
e[0me[91mnpm ERR! errnoe[0me[91m 1
e[0me[91mnpm ERR!e[0me[91m @rocket.chat/forked-matrix-sdk-crypto-nodejs@0.1.0-beta.12 postinstall: `node check-exists.js`
npm ERR!e[0me[91m Exit status 1
npm ERR!e[0me[91m
npm e[0me[91mERR! Failed at the @rocket.chat/forked-matrix-sdk-crypto-nodejs@0.1.0-beta.12 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
e[0me[91m
I tried to understand what lib is this coming from, looks like this
but there is no src/request.rs
in it, I am really confused.