-
Notifications
You must be signed in to change notification settings - Fork 1k
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
npm install
failed to generate deps.js
#1189
Comments
I can't reproduce this:
|
@12wrigja Could you check if |
closure/goog/deps.js does exist and contains what look like relevant dependency management lines. Can you try running |
@12wrigja Oh my bad. Looks like I still have one issue though. I followed the Closure tutorial but got an error: It's supposed to display "Hello World" on the screen. When I used the latest release of closure library, it worked (but not if I pull code from the latest commit on master) Here is my code in case you want to take a look at it. I basically just copied from the tutorial: https://github.com/anhminhtran235/google-closure-playground |
Looking at that repo I don't think the link to the closure-library repo is setup properly - it's not a proper submodule link. Why do you want to link against our repository directly? We offer no stability guarantees this way, and you are far better off consuming our NPM packages. |
I see. I think what you want to do instead is something like this: Create a new NPM project:
Install the Closure Library NPM package (https://www.npmjs.com/package/google-closure-library):
Then, change your hello.html file to point to base.js and deps.js from within the node module package:
becomes
|
That makes sense. That would use the release version so I think it'd work. Do you know who's maintaining this doc? It'd be super helpful if somebody can change the instruction from cloning this repo to installing from npm. It took me quite a while to figure out that the latest release would work for me. Thank you for your help! |
I think I've found out where that doc is being maintained internally, so I'll see if I get that updated. |
Perfect! Thank you |
I followed the setup steps here and ran the following commands:
At the time of this writing, this is the latest commit
After
npm install
is run, however,deps.js
is not generated.When I use code from the latest release, it works fine
Could somebody fix either the code or the docs (and say that the latest release must be used?)
Thank you!
The text was updated successfully, but these errors were encountered: