MagicMirror² v2.12.0 is available! For more information about this release, check out this topic.

Run MM² on W10 to test modules - 404 and X-Content-Type-Options: nosniff



  • Hello,

    Trying to run MM² on my w10 laptop with node version 12.18.3.

    git clone & npm install, config file with ip whitelist & npm run server ( https://docs.magicmirror.builders/getting-started/installation.html#usage )

    The application starts and I can open localhost:8080 and it’s a black screen.

    Main errors is a variation of :

    GET http://localhost:8080/vendor/node_modules/nunjucks/browser/nunjucks.min.js
    [HTTP/1.1 404 Not Found 29ms]
    The resource from "http://localhost:8080/vendor/node_modules/nunjucks/browser/nunjucks.min.js" was blocked due to MIME type (« text/html ») mismatch (X-Content-Type-Options: nosniff).
    

    At the bottom of the post are all the dev tools console logs.

    So, I got 2 issues :

    What is happening ? Should I run a npm install inside each sub-directory of /MagicMirror/ ? Do I need to modify the html of MM² to follow the stackoverflow answer?

    Or is there a special case for running it on w10 / node 12 ?

    Thanks for any tips. I will update my post with npm install in every sub-directory results.

    GEThttp://localhost:8080/vendor/node_modules/nunjucks/browser/nunjucks.min.js
    [HTTP/1.1 404 Not Found 29ms]
    
    La ressource à l’adresse « http://localhost:8080/vendor/node_modules/nunjucks/browser/nunjucks.min.js » a été bloquée en raison d’un type MIME (« text/html ») incorrect (X-Content-Type-Options: nosniff).
    localhost:8080
    GEThttp://localhost:8080/fonts/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Regular.woff2
    [HTTP/1.1 404 Not Found 2ms]
    
    downloadable font: download failed (font-family: "Roboto Condensed" style:normal weight:400 stretch:100 src index:2): status=2147746065 source: http://localhost:8080/fonts/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Regular.woff2
    GEThttp://localhost:8080/vendor/node_modules/nunjucks/browser/nunjucks.min.js
    [HTTP/1.1 404 Not Found 3ms]
    
    La ressource à l’adresse « http://localhost:8080/vendor/node_modules/nunjucks/browser/nunjucks.min.js » a été bloquée en raison d’un type MIME (« text/html ») incorrect (X-Content-Type-Options: nosniff).
    localhost:8080
    Échec du chargement pour l’élément 


  • @poutr after install you have to manually do

    npm install
    in the vendor and fonts folders



  • Hello, just coming back from doing that (as I wrote I would) and it worked \o/ Thanks for confirming it’s the correct solution

    Edit : how do I close the topic ? can we add this tip to the documentation ?



  • @poutr u did not open it as an issue, so cannot close it.

    update doc. No, the project is only supported on pi 3 and 4.


Log in to reply