Skip to content

ng generate fails on windows #51

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
fursad opened this issue Oct 23, 2015 · 3 comments
Closed

ng generate fails on windows #51

fursad opened this issue Oct 23, 2015 · 3 comments

Comments

@fursad
Copy link

fursad commented Oct 23, 2015

$ ng generate component newcomponent
C:\angulargen\node_modules\angular-cli-github-pages\lib\commands\deploy.js:55
(files) => RSVP.all(files.map((file) => fsCopy(path.join('dist',
^^
Unexpected token =>
C:\angulargen\node_modules\angular-cli-github-pages\lib\commands\deploy.js:55
(files) => RSVP.all(files.map((file) => fsCopy(path.join('dist',
^^
SyntaxError: Unexpected token =>
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Class.module.exports.includedCommands (C:\angulargen\node_modules\angular-cli-github-pages\index.js:9:30)
at C:\angulargen\node_modules\angular-cli\node_modules\ember-cli\lib\models\project.js:393:61
at Array.forEach (native)

@alexpaluzzi
Copy link
Contributor

You need to update to Node 4.0+ so it knows what to do with fat arrow.

@IgorMinar
Copy link
Contributor

yup. please use node 4+

clydin pushed a commit that referenced this issue Jun 5, 2018
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants