-
Notifications
You must be signed in to change notification settings - Fork 12k
Update the documentation on how to update to webpack #2133
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
Comments
sorry guys I inadvertently used some formatting, I hope it's still comprehensible. |
I just noticed from https://github.com/angular/angular-cli
can I use node 6.5.0? is the prerequisites are node >= 4.x.x? |
you can certainly use Node 6.5.0 |
I too am having issues upgrading.. Two docs updated just 4 days apart, which is the correct document? I started with this doc https://github.com/angular/angular-cli/blob/master/WEBPACK_UPDATE.md and got the same message as the OP when running "ng init" which led me to https://github.com/angular/angular-cli/wiki/Upgrading-from-Beta.10-to-Beta.12 . Firstly, I do not see a Beta 12 release for the CLI webpack or otherwise. Secondly I am getting a lot of errors when running the "sudo npm install -g angular-cli@latest"
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Linux fedora 24
ng --version
. If there's nothing outputted, please runin a Terminal:
node --version
and paste the result here:$ ng --version
(node:28399) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://ember-cli.com/user-guide/#watchman for more info.
angular-cli: 1.0.0-beta.10
node: 6.5.0
os: linux x64
do on your code? etc.
npm uninstall -g angular-cli
npm cache clean
npm install -g [email protected]
move to a temporary directory and generate a new project
ng new beta10-update
cd beta10-update
follow the update guide
https://github.com/angular/angular-cli/blob/master/WEBPACK_UPDATE.md
I past here the steps:
Global package:
npm uninstall -g angular-cli
npm cache clean
npm install -g angular-cli@webpack
Local project package:
commit any changes you have to git first
rm -rf node_modules dist tmp typings
npm install --save-dev angular-cli@webpack
ng init
more information.
with the last command 'ng init' you get the following message:
It seems like you're using a project generated using an old version of the Angular CLI.
The latest CLI now uses webpack and includes a lot of improvements, include a simpler
workflow, a faster build and smaller bundles.
To get more info, including a step-by-step guide to upgrade the CLI, follow this link:
https://github.com/angular/angular-cli/wiki/Upgrading-from-Beta.10-to-Beta.12
The documentation is saying "Upgrading from [email protected] to the angular-cli@webpack", that is exactly what I'm doing but the steps are leading to an error.
The error message provide another documentation page (https://github.com/angular/angular-cli/wiki/Upgrading-from-Beta.10-to-Beta.12). That is even more confusing because try to explain how to move from "Beta.10 to Beta.12" that is overlapping with the other documentation title (angular-cli@webpack lead to beta.14 currently)
The text was updated successfully, but these errors were encountered: