Code Monkey home page Code Monkey logo

Comments (7)

buffcode avatar buffcode commented on May 30, 2024

dgram is part of the NodeJS core: https://nodejs.org/api/dgram.html
Which version of node are you using?

from ntp-time-sync.

sebastianmacias avatar sebastianmacias commented on May 30, 2024

I'm using 8.9.4

dev@DevX:[~]: node -v
v8.9.4
dev@DevX:[~]: npm -v
5.6.0
dev@DevX:[~]: yarn -v
1.3.2


from ntp-time-sync.

sebastianmacias avatar sebastianmacias commented on May 30, 2024

Do I need to use v9.5.0?

from ntp-time-sync.

sebastianmacias avatar sebastianmacias commented on May 30, 2024

Installed v9.5.0, didn't work either. I'm getting the same error.

from ntp-time-sync.

kayakyakr avatar kayakyakr commented on May 30, 2024

Are you trying to use in a client-side project? If so, UDP is not available from the browser and you are limited to ajax-emulation of an NTP client.

from ntp-time-sync.

samaneh-kamalian avatar samaneh-kamalian commented on May 30, 2024

Hi,

I'm getting the following error:

This dependency was not found:

* dgram in ./node_modules/ntp-time-sync/dist/index.js

To install it, you can run: npm install --save dgram

Same error after installing dgram. Looks like it's related to the fact that dgram is not longer a project on npm.

Thanks

same problem

from ntp-time-sync.

buffcode avatar buffcode commented on May 30, 2024

This package is only useful in a NodeJS context and cannot be used within a browser.
dgram is part of the NodeJS API.

I updated the README to clarify this.

from ntp-time-sync.

Related Issues (7)

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.