Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need some instruction on how to get started #177

Open
newjie opened this issue Jul 20, 2022 · 1 comment
Open

Need some instruction on how to get started #177

newjie opened this issue Jul 20, 2022 · 1 comment

Comments

@newjie
Copy link

newjie commented Jul 20, 2022

I know very little about Github so I am not sure how to get started with this library and need some very basic helps.

1) How can I directly use this on a browser?
I downloaded the zip file and extracted them to a word folder, and then under the same folder, I create a test.html file:

 <head>
  <script src="/word/build/d3.layout.cloud.js"></script>
  <script src="/word/examples/browserify.js"></script>
</head>
<body>
</body>

The browserify.js file will generate an error. I understand it can only be used under nodejs environment. But how can I directly use it on my webpage?

2) How to install the library through npm?
I also tried installing it on my linux server. Again, I extracted the downloaded .zip file to a word folder, and under this folder I ran
npm i d3-cloud
However, this is what I got:
image
the log says:

verbose stack Error: Refusing to install d3-cloud as a dependency of itself

UPDATE
OK. I have been able to install the package by running
npm i
under the word folder. Still the question is, how can I use this library on my webpage?

@rjalexa
Copy link

rjalexa commented Feb 28, 2024

Same need. Nobody ever replied? :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants