MetaWear-SDK-JavaScript icon indicating copy to clipboard operation
MetaWear-SDK-JavaScript copied to clipboard

install script not working

Open ClementBarbisan opened this issue 8 years ago • 5 comments

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

ClementBarbisan avatar Feb 02 '18 18:02 ClementBarbisan

Please provide the entire npm output.

scaryghost avatar Feb 03 '18 04:02 scaryghost

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. (E:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:285:16) 249 verbose stack at emitTwo (events.js:126:13) 249 verbose stack at EventEmitter.emit (events.js:214:7) 249 verbose stack at ChildProcess. (E:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14) 249 verbose stack at emitTwo (events.js:126:13) 249 verbose stack at ChildProcess.emit (events.js:214:7) 249 verbose stack at maybeClose (internal/child_process.js:925:16) 249 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5) 250 verbose pkgid [email protected] 251 verbose cwd E:\SDK-JavaScript 252 verbose Windows_NT 10.0.16299 253 verbose argv "E:\Program Files\nodejs\node.exe" "E:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "metawear" 254 verbose node v8.9.4 255 verbose npm v5.6.0 256 error code ELIFECYCLE 257 error errno 3221225781 258 error [email protected] install: 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.

ClementBarbisan avatar Feb 05 '18 09:02 ClementBarbisan

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.

scaryghost avatar Feb 05 '18 19:02 scaryghost

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 :-)

JpEncausse avatar May 29 '18 22:05 JpEncausse

You can build the underlying C++ code with MSBuild:

https://github.com/mbientlab/MetaWear-SDK-Cpp#visual-studio-2017

scaryghost avatar May 31 '18 21:05 scaryghost