install script not working
Hello,
When i try to do a "npm install metawear", i got this output :
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: make OPT_FLAGS=-Wno-strict-aliasing -C MetaWear-SDK-Cpp/ -j
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Can you tell me please what i did wrong? Thanks
Please provide the entire npm output.
So i figure i didn't had make, but now i have this log:
246 warn optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\xpc-connection):
247 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
248 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: darwin
248 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: any
248 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: win32
248 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
249 verbose stack Error: [email protected] install: make OPT_FLAGS=-Wno-strict-aliasing -C MetaWear-SDK-Cpp/ -j
249 verbose stack Exit status 3221225781
249 verbose stack at EventEmitter.make OPT_FLAGS=-Wno-strict-aliasing -C MetaWear-SDK-Cpp/ -j
258 error Exit status 3221225781
259 error Failed at the [email protected] install script.
259 error This is probably not a problem with npm. There is likely additional logging output above.
260 verbose exit [ 3221225781, true ]
I'm on windows 10 so maybe it has something to do with it.
The JavaScript SDK has not been tested for Windows and is originally intended for use on Linux. It should work in Windows but you will probably need to use MSBuild to build the DLL.
We have a C# SDK for Win10 devices.
Got the same issue on windows, the installation fail because the script is looking for "make", i assume, to compile the C code. Would it be possible to download the pre-build dll for win32 / win64 ?
BTW, node-gyp evolved very well, and Noble is now simpler to install and see Metaware devices :-)
You can build the underlying C++ code with MSBuild:
https://github.com/mbientlab/MetaWear-SDK-Cpp#visual-studio-2017