Skip to content

1.0.0-beta.31 ng update not updating angular-cli.json and packages.json #4580

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
stefannikolei opened this issue Feb 10, 2017 · 7 comments
Closed

Comments

@stefannikolei
Copy link

Running ng -update just tries to update .editorconfig All other files are untouched

@anderaus
Copy link

anderaus commented Feb 10, 2017

I believe I'm seeing the same issue. On Windows, running "ng update" after installing beta.31 prompts to override the first file only, then exits. I tested deleting ".editorconfig" and running "ng update" again, it goes on to diff "readme.md" and then exits again.

@g-mack
Copy link

g-mack commented Feb 10, 2017

Same for me on Windows after updating to beta.31.

ng update starts and asks for Overwriting README.md.
If I type "d" and press enter on the "Diff" command, the process exits without error.

@angular/cli: 1.0.0-beta.31
node: 7.5.0
os: win32 x64
@angular/common: 2.4.7
@angular/compiler: 2.4.7
@angular/core: 2.4.7
@angular/forms: 2.4.7
@angular/http: 2.4.7
@angular/platform-browser: 2.4.7
@angular/platform-browser-dynamic: 2.4.7
@angular/router: 3.4.7
@angular/cli: 1.0.0-beta.31
@angular/compiler-cli: 2.4.7

@ByJC
Copy link

ByJC commented Feb 10, 2017

Hi everyone,
I just updated the cli to the beta.31 version and when i run ng update, I got the following error

Unexpected token =
SyntaxError: Unexpected token =
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:387:25)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (/Users/JC/Workspace/perso/ng-blog-posts/node_modules/@angular/cli/models/config.js:2:18)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (/Users/JC/Workspace/perso/ng-blog-posts/node_modules/@angular/cli/addon/index.js:4:16)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Function.Addon.lookup (/Users/JC/Workspace/perso/ng-blog-posts/node_modules/@angular/cli/ember-cli/lib/models/addon.js:218:19)
    at Project.initializeAddons (/Users/JC/Workspace/perso/ng-blog-posts/node_modules/@angular/cli/ember-cli/lib/models/project.js:305:29)
    at Project.eachAddonCommand (/Users/JC/Workspace/perso/ng-blog-posts/node_modules/@angular/cli/ember-cli/lib/models/project.js:359:10)
    at module.exports (/Users/JC/Workspace/perso/ng-blog-posts/node_modules/@angular/cli/ember-cli/lib/cli/lookup-command.js:33:13)
    at CLI.<anonymous> (/Users/JC/Workspace/perso/ng-blog-posts/node_modules/@angular/cli/ember-cli/lib/cli/cli.js:42:26)
    at tryCatch (/Users/JC/Workspace/perso/ng-blog-posts/node_modules/rsvp/dist/rsvp.js:538:12)
    at invokeCallback (/Users/JC/Workspace/perso/ng-blog-posts/node_modules/rsvp/dist/rsvp.js:553:13)
    at publish (/Users/JC/Workspace/perso/ng-blog-posts/node_modules/rsvp/dist/rsvp.js:521:7)
    at flush (/Users/JC/Workspace/perso/ng-blog-posts/node_modules/rsvp/dist/rsvp.js:2373:5)
    at _combinedTickCallback (node.js:370:9)
    at process._tickCallback (node.js:401:11)

Do you have any ideas why ?

@ptsydzik-zz
Copy link

@ByJC, You need to update typescript and ts-node modules

@ByJC
Copy link

ByJC commented Feb 10, 2017

Thanks for the answer and sorry if it was not the place for asking this, it feels related.

@filipesilva
Copy link
Contributor

Marking as dupe of #4584 since that one has more detail.

@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 6, 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

6 participants