Skip to content

请尽快修复coffee-script安装失败的问题 #657

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ChangedenCZD opened this issue Nov 30, 2017 · 17 comments
Closed

请尽快修复coffee-script安装失败的问题 #657

ChangedenCZD opened this issue Nov 30, 2017 · 17 comments

Comments

@ChangedenCZD
Copy link

目前无法完成 npm i -g vue-cli 的操作。
错误问题:Error: coffee-script@1.12.8 postinstall: 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(""); }'
分析原因:coffee-script模块已被移除,改为 coffeescript

@inickel
Copy link

inickel commented Nov 30, 2017

mark

f**k NPM

PR 4 gray-matter

@ghost
Copy link

ghost commented Nov 30, 2017

CoffeeScript has moved, wait until update

@Tobee4Lin
Copy link

still doesn't work :)

@tboevil
Copy link

tboevil commented Nov 30, 2017

you can modify package.json and run npm update

@ChangedenCZD
Copy link
Author

ChangedenCZD commented Nov 30, 2017

@sansroman modify which module's package.json,i can's install vue-cli.

@tboevil
Copy link

tboevil commented Nov 30, 2017

@ChangedenCZD I modify global,you can try npm install coffee-script -g & npm update & npm install vue-cli -g,This solves my problem, and I don't know if it's the same for you.don't forget sudo or su root

@ChangedenCZD
Copy link
Author

ChangedenCZD commented Nov 30, 2017

@sansroman npm install coffee-script -g don't work

@ChangedenCZD
Copy link
Author

@sansroman https://www.npmjs.com/package/coffee-script CoffeeScript has moved!

@tboevil
Copy link

tboevil commented Nov 30, 2017

@ChangedenCZD So replace with coffee-script

@ChangedenCZD
Copy link
Author

@sansroman how can i do this?wait for official update?

@tboevil
Copy link

tboevil commented Nov 30, 2017

@ChangedenCZD What is the wrong message when you run npm install coffee-script -g?

@ChangedenCZD
Copy link
Author

@sansroman Error: coffee-script@1.12.8 postinstall: 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(""); }'

@tboevil
Copy link

tboevil commented Nov 30, 2017

@ChangedenCZD no tube,please continue

@royeaher
Copy link

@sansroman this answer [https://stackoverflow.com/questions/13011290/cannot-find-module-coffee-script] comes from five years ago

@tboevil
Copy link

tboevil commented Nov 30, 2017

@royeaher sorry, but the same issue fixed for me

@posva
Copy link
Member

posva commented Nov 30, 2017

Duplicate of #655

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants