Coder Social home page Coder Social logo

Comments (5)

mkovatsc avatar mkovatsc commented on July 20, 2024

The AddressInfo bug came from @types/ws: DefinitelyTyped/DefinitelyTyped#25890
It is fixed in 5.1.2, which is now the dependency for node-wot (5e68104).

from node-wot.

mkovatsc avatar mkovatsc commented on July 20, 2024

NodeJS 10.* does not need the crypto polyfill (see https://github.com/AlCalzone/node-dtls-client/blob/master/install/postinstall.js), so no local compilation is needed then.

For versions < 10.* it should still work properly, given the prerequisites for node-gyp: https://github.com/nodejs/node-gyp#installation -- which is covered on Windows with the buildtools:

  • Python 2.7
  • make
  • GCC

I will add this to the README for Linux and MacOS.

from node-wot.

danielpeintner avatar danielpeintner commented on July 20, 2024

The recent updates resolved the afore mentioned issues for node v10.

Running npm install -g --production windows-build-tools in CMD shell as administrator, as described in https://github.com/eclipse/thingweb.node-wot#windows, did NOT work for me with node v8.

Maybe an issue on my machine/installation. Do others experience the same issue?

> [email protected] install:default D:\Projects\WoT\thingweb\thingweb.node-
wot\packages\binding-coap\node_modules\node-dtls-client\node_modules\node-aead-c
rypto
> node-pre-gyp install --fallback-to-build

Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
D:\Projects\WoT\thingweb\thingweb.node-wot\packages\binding-coap\node_modules\no
de-dtls-client\node_modules\node-aead-crypto\build\node_aead_crypto.vcxproj(20,3
): error MSB4019: The imported project "D:\Microsoft.Cpp.Default.props" was not
found. Confirm that the path in the <Import> declaration is correct, and that th
e file exists on disk.
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\mchn4310\AppData\Ro
aming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallbac
k-to-build --module=D:\Projects\WoT\thingweb\thingweb.node-wot\packages\binding-
coap\node_modules\node-dtls-client\node_modules\node-aead-crypto\build\Release\n
ode-v57-win32-x64\node_aead_crypto.node --module_name=node_aead_crypto --module_
path=D:\Projects\WoT\thingweb\thingweb.node-wot\packages\binding-coap\node_modul
es\node-dtls-client\node_modules\node-aead-crypto\build\Release\node-v57-win32-x
64 --napi_version=3 --node_abi_napi=napi' (1)

    at Promise.all.then.arr (D:\Projects\WoT\thingweb\thingweb.node-wot\node_mod
ules\lerna\node_modules\execa\index.js:236:11)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
  code: 1,
  killed: false,
  stdout: '\n> [email protected] install D:\\Projects\\WoT\\thingweb\\thing
web.node-wot\\packages\\binding-coap\\node_modules\\node-dtls-client\n> node ins
tall/postinstall.js\n\nnode-dtls-client: testing NodeJS version\n  Version < 10,
 installing node-aead-crypto...\n\n> [email protected] install D:\\Projects
\\WoT\\thingweb\\thingweb.node-wot\\packages\\binding-coap\\node_modules\\node-d
tls-client\\node_modules\\node-aead-crypto\n> node lib/install.js\n\nrunning def
ault installation script\n\n> [email protected] install:default D:\\Project
s\\WoT\\thingweb\\thingweb.node-wot\\packages\\binding-coap\\node_modules\\node-
dtls-client\\node_modules\\node-aead-crypto\n> node-pre-gyp install --fallback-t
o-build\n\nBuilding the projects in this solution one at a time. To enable paral
lel build, please add the "/m" switch.\r\nD:\\Projects\\WoT\\thingweb\\thingweb.
node-wot\\packages\\binding-coap\\node_modules\\node-dtls-client\\node_modules\\
node-aead-crypto\\build\\node_aead_crypto.vcxproj(20,3): error MSB4019: The impo
...

For the last issue about Travis I opened another issue (see #22).

from node-wot.

mkovatsc avatar mkovatsc commented on July 20, 2024

Works for me on the "good" old Windows 7.

I remember an issue with the free Visual Studio compilers for Windows 10 and the need to manually install a specific version.

Which Windows and for 10 which build do you have?

from node-wot.

danielpeintner avatar danielpeintner commented on July 20, 2024

I am on Windows7 too.

Anyhow, node10 works... might really an issue n my side and I think we can close the issue

from node-wot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.