Error when i compile file .jade in ubuntu 12.04

374 views
Skip to first unread message

Fernando Segura Gòmez

unread,
Sep 26, 2012, 10:17:48 PM9/26/12
to jad...@googlegroups.com
Hi for everyone, i have a problem with Jade in Ubuntu, when i try to compile one file .jade in terminal with the command : jade index.jade , in the terminal showing the nexts error messages:  jade:index.jade:1:0:E: character "d" not allowed in prolog jade:index.jade:15:8:E: character "p" not allowed in prolog jade:index.jade:17:8:E: end of document in prolog jade:E: cannot find "index.dsl"; tried "index.dsl", "/usr/local/share/sgml/index.dsl", "/usr/share/sgml/index.dsl" jade:E: specification document does not have the DSSSL architecture as a base architecture  

I have Ubuntu 12.04 , when installed jade with the command , the first message in the terminal was : npm WARN coffee...@1.3.3 package.json: bugs['name'] should probably be bugs['url']  ¿Jade was not installed ? If i dont, ¿how i can uninstalled and back to install again?

Justin White

unread,
Feb 22, 2016, 4:14:59 PM2/22/16
to Jade
Make sure you have a doctype at the top of the index.jade file

example:

doctype html
p = my_content

this fixed the issue I had with the error: character "p" not allowed in prolog

here is a good link to possible doctypes you might want to use: http://learnjade.com/tour/doctypes/
Reply all
Reply to author
Forward
0 new messages