question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error installing vue-cli because coffeescript moved

See original GitHub issue

Hi System: Windows 10, node version 8.3.0 npm i -g vue-cli gives this error:

> coffee-script@1.12.8 postinstall C:\Users\Dave\AppData\Roaming\npm\node_modules\vue-cli\node_modules\coffee-script
> node --eval 'if (require("./package.json").name === "coffee-script") { var red, yellow, cyan, reset; red = yellow = cyan = reset = ""; if (!process.env.NODE_DISABLE_COLORS) { red = "\x1b[31m"; yellow = "\x1b[33m"; cyan = "\x1b[36m"; reset = "\x1b[0m"; } console.warn(red + "CoffeeScript has moved!" + reset + " Please update references to " + yellow + "\"coffee-script\"" + reset + " to use " + yellow + "\"coffeescript\"" + reset + " (no hyphen) instead."); console.warn("Also, a new major version has been released under the " + yellow + "coffeescript" + reset + " name on NPM. This new release targets modern JavaScript, with minimal breaking changes. Learn more at " + cyan + "http://coffeescript.org" + reset + "."); console.warn(""); }'

[eval]:1
'if
^^^

SyntaxError: Invalid or unexpected token
    at createScript (vm.js:74:10)
    at Object.runInThisContext (vm.js:116:10)
    at Object.<anonymous> ([eval]-wrapper:6:22)
    at Module._compile (module.js:573:30)
    at evalScript (bootstrap_node.js:435:27)
    at startup (bootstrap_node.js:139:9)
    at bootstrap_node.js:578:3

i guess it’s because of this https://www.npmjs.com/package/coffee-script Now coffee-script is coffeescript

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
yyx990803commented, Nov 30, 2017

Unfortunately metalsmith is using an outdated major version of gray-matter so that PR won’t actually fix vue-cli. Looks like we’ll have to fork metalsmith…

3reactions
yyx990803commented, Nov 30, 2017

Should be fixed in 2.9.2 by explicitly pinning coffee-script version

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm install -g vue-cli -> coffeescript moved - node.js
All they say is that it will be fixed in version 2.9.2 , while I'm trying to install 2.9.3 .. Has anyone else...
Read more >
[Solved]-npm install -g vue-cli -> coffeescript moved-Vue.js
I also encountered this problem. After understanding it, looking at the prompt, it was just a warning that CoffeeScript moved to "coffeescript" is...
Read more >
Vue.js | PyCharm Documentation
Vue.js is a framework for developing user interfaces and advanced single-page applications. PyCharm provides support for the Vue.js building ...
Read more >
Vue CLI tutorial
Tutorials: Vue CLI tutorial. Wallaby.js runs your JavaScript tests immediately as you type and displays execution results in your code editor.
Read more >
Handling Webpack
If you are using Coffeescript then you need to EITHER disable ESLint OR tell ESLint which Vue components are using Coffeescript. Note that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found