Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8850523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:55:23+00:00 2026-06-14T12:55:23+00:00

I npm installed the node-term-ui package, but I keep getting Unexpected string errors, then

  • 0

I npm installed the node-term-ui package, but I keep getting “Unexpected string” errors, then I noticed the syntax in the files looks different, and realized it’s CoffeeScript which I’ve never used before.

How do I make it work?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T12:55:24+00:00Added an answer on June 14, 2026 at 12:55 pm

    zeMirco’s answer is correct, but let me add more info: What node-term-ui is doing is very, very unusual. The author has set main in their package.json to point to a .coffee file, rather than compiling that file to a .js file. They also haven’t noted this in their README. I see that there’s now discussion about this at https://github.com/jocafa/node-term-ui/issues/2.

    The need for a .js file may not have occurred to the author because, if you’re running a .coffee file, you can require other .coffee files. In fact, all you need to require .coffee files directly is to require the coffee-script module first. So what you could do in your JS file is:

    require('coffee-script');
    var TermUI = require('node-term-ui');
    

    Be sure to add coffee-script as a project dependency first.

    I hope the author will modify the library so that CoffeeScript isn’t required to use it, but that workaround should be easier than zeMirco’s solution of compiling the module manually.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've installed node-qunit (stable) from npm, but can't seem to get any tests working.
I installed node v0.8.14 on Mac OS 10.7.5. I then installed Grunt with npm
I'm trying to install NPM packages on Ubuntu (12.04). I've installed Node.js and NPM
I've installed NVM for node.js using the instructions from this post: http://www.backdrifter.com/2011/02/18/using-nvm-and-npm-to-manage-node-js/ When I
Are there any implementations of circular buffers/ring buffers on NPM (Node.JS Package Manager)? I
I installed mongoose on node.js using npm. When I try to connect with this
I'm running node.js on OSX and have just installed mongodb using command npm install
I am trying to install node http-proxy with the following: npm install http-proxy But
Have installed Node version manager 'n'. Installed 'mocha' using n npm 0.6.4 install mocha
I followed the link below to install npm http://shapeshed.com/setting-up-nodejs-and-npm-on-mac-osx/ Node -v 0.8.2 was installed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.