-
Notifications
You must be signed in to change notification settings - Fork 43
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
error: Error: Cannot find module '/Users/eduardoboucas/Sites/cli/wrapper/updater.js' #521
Comments
Hi @maicoly Looks like a problem installing from the CLI. I'd try installing directly from NPM instead:
This will give you the latest CDN version, which should be 4.0.0 |
You'll also need a file to act as the entry point. Add a file called "index.js" with the following content:
Now, running |
Hi @jimlambie , thanks for your support
also when using the
the version of node I use is 8.9.4 |
@maicoly I think the defaults for
As for the next error, yes we will need to add a configuration file:
Sample contents for the configuration file are below (and info regarding the settings available at https://docs.dadi.cloud/cdn/3.4#configuration)
|
Hi @jimlambie, thanks again for your support
however when I open the url localhost: 8001 I get:
do i need any other file? now with npm start (adding the configuration you sent me!)
|
Odd.... can you try |
As for the missing file message - you'll need images in a folder called "images", or whatever is configured (I think the default is just an "images" directory. Then you can choose one of the files from that folder and try http://localhost:8001/my-file.jpg. The message you got indicates that you requested no file. A response from http://localhost:8001/hello should also indicate it's running fine... |
the output again is:
package.json:
|
Ah - you have two "scripts" blocks. Move "start" inside the one further down |
Thxs, @jimlambie; ran without any problem! Thxs again for support! |
@maicoly pleased it's working for you! Correct, CDN determines what to do based on the file extension. The configuration blocks for "images" and "assets" control where CDN will look for files that are requested - if the extension isn't a typical image format then it'll assume it's an asset (think CSS, JS, fonts, etc) and use the "assets" block to try to locate it: e.g.
|
@jimlambie, Maybe I did not understand well, what happens is that in the request it delays responding |
I think perhaps in the case of returning from "assets" it doesn't know what to do with an extension-less file? It's hard to know without debugging properly. Can you add file extensions to make it more obvious? |
Hmmm... seems strange. Could you change the configuration of the images block (images.directory.path) to the absolute path?
|
@jimlambie thxs, it's solved!!! wow! thxs. YES, is strange! |
Hello everyone, I cannot install CDN DADI I get this error, I have tried this guide but I get this error:
link page:
https://github.com/dadi/cdn
https://docs.dadi.cloud/cdn/3.4
can you help me?
The text was updated successfully, but these errors were encountered: