NEEOInc / neeo-sdk

NEEO Brain SDK
https://neeoinc.github.io/neeo-sdk/
MIT License
49 stars 17 forks source link

neeo-sdk (0.52.18) won't install on windows. #164

Closed nklerk closed 5 years ago

nklerk commented 5 years ago

I tested this on two Windows10 systems. and both wont install through git, Linux works without issues. workaround is to extract the files locally and issue npm install .\path\

Installation fails with: C:\Users\ndkso\Desktop\test>npm install git+https://github.com/NEEOInc/neeo-sdk.git#next

or when included in a drivers package.json.

Error:

neeo-sdk@0.52.18 prepack C:\Users\ndkso\AppData\Roaming\npm-cache_cacache\tmp\git-clone-d5b06d55 npm i && npm run build

added 589 packages from 1370 contributors and audited 2819 packages in 20.498s found 1 low severity vulnerability run npm audit fix to fix them, or npm audit for details

neeo-sdk@0.52.18 build C:\Users\ndkso\AppData\Roaming\npm-cache_cacache\tmp\git-clone-d5b06d55 tsc && npm run copy:validate-lib

neeo-sdk@0.52.18 copy:validate-lib C:\Users\ndkso\AppData\Roaming\npm-cache_cacache\tmp\git-clone-d5b06d55 mkdir -p ./dist/lib/device/validation/vendor && cp ./src/lib/device/validation/vendor/validate.min.js ./dist/lib/device/validation/vendor/

The syntax of the command is incorrect. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! neeo-sdk@0.52.18 copy:validate-lib: mkdir -p ./dist/lib/device/validation/vendor && cp ./src/lib/device/validation/vendor/validate.min.js ./dist/lib/device/validation/vendor/ npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the neeo-sdk@0.52.18 copy:validate-lib script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\ndkso\AppData\Roaming\npm-cache_logs\2018-12-11T18_50_29_981Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! neeo-sdk@0.52.18 build: tsc && npm run copy:validate-lib npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the neeo-sdk@0.52.18 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\ndkso\AppData\Roaming\npm-cache_logs\2018-12-11T18_50_30_023Z-debug.log npm WARN Local package.json exists, but node_modules missing, did you mean to install? npm ERR! premature close

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\ndkso\AppData\Roaming\npm-cache_logs\2018-12-11T18_50_30_065Z-debug.log

MichaelKohler commented 5 years ago

Yes, thanks @nklerk. Fully acknowledged and I will have a look tomorrow.

MichaelKohler commented 5 years ago

@nklerk this AFAIK should only happen when installing from GitHub as that will run the build steps. Directly installing from NPM should work for now: npm install neeo-sdk@next

Does that work for you?

nklerk commented 5 years ago

It worked perfectly! thanks.

MichaelKohler commented 5 years ago

As it works perfectly through npm, the fix for this will be included in 0.53.x, not 0.52.20. Thanks for reporting it!