简体   繁体   中英

Meteor error when installing npm modules

So when I install cheerio using npm, I get this error.

Error: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you) - line 1, file 

I tried to do the same with jsdom, and I get parse error.

Right now I have my html and css in a client folder and the server side code in a server folder. I have made no other changes from the default stuff meteor does for you.

Why is this happening?

我已经能够通过使用以下方法解决问题:

npm install cheerio -g 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM