Tuesday, 15 February 2011

node.js - Why can't I load js and css when using hexo publish blog -


I want to use hexo to make my blog public on gitub I can use my webpage Localhost: 4000 but later Jithub was deployed. I can only get words with pages but JS and CSS can not be loaded. There is an error message from the Chrome console


Failed to load the resource: The server responded with a status of 404 (not found)


Any content in it Not the CSS file, but I can find the contents in the repository files.

When I install Hexo I get a warning

  & gt; $ NPM installs hexo-g NPM variants optional Dpsy failed, continuous fsevents@0.3.5 | & Gt; Dtrace-provider@0.4.0 Install C: \ Users \ Rudy \ AppData \ Roaming \ npm \ node_modules \ h exo \ node_modules \ bunyan \ node_modules \ dtrace-provider & gt; Node script / install.js npm vern Alternative backup fail, constant fsevents@0.3.0  

I am not familiar with nodes, so I do not know that this place is something wrong. / P>

How can I fix this problem?

Maybe hexo2.8 to choose a good I had the same problem, That's why I changed the CSS style of topics. And then I came back to Hexo 2.8, the problem is missing.

npm install hexo@2.8 -g


No comments:

Post a Comment