Thursday, July 20, 2017

we are moving the CLI npm with the next release,

 ng new my-app
As a forewarning, we are moving the CLI npm package to "@angular/cli" with the next release,
which will only support Node 6.9 and greater. This package will be officially deprecated
shortly after.

To disable this warning use "ng set --global warnings.packageDeprecation=false".


git hub is full of shitty queries. because the developers just dont know their stuff?wtf is happening?

https://github.com/angular/angular-cli/issues/4368


https://github.com/angular/angular-cli/issues/5558

The project needs a dev dependency for @angular/compiler-cli.
npm install --save-dev @angular/compiler-cli@
https://github.com/angular/angular-cli/issues/5558

https://github.com/angular/angular-cli/issues/4368#issuecomment-277152176


I'm sorry that this release wrecked havoc in older releases, and that it has caused you to have to spend time updating and fixing packages.

This isn't something that you can expect to be fixed without an update on your side though. I'm sorry but it's just not. beta.18 and beta.28.3 are versions that were never meant to be supported long term and we never tried to hide that. The only version for which there is long term support is 1.0 when it is out.


Here is the angular-cli Git Page details:

If you're using Angular CLI beta.28 or less, you need to uninstall angular-cli package. It should be done due to changing of package's name and scope from angular-cli to @angular/cli:
npm uninstall -g angular-cli
npm uninstall --save-dev angular-cli
To update Angular CLI to a new version, you must update both the global package and your project's local package.
Global package:
npm uninstall -g @angular/cli
npm cache clean
npm install -g @angular/cli@latest
Local project package:
rm -rf node_modules dist # use rmdir /S/Q node_modules dist in Windows Command Prompt; use rm -r -fo node_modules,dist in Windows PowerShell
npm install --save-dev @angular/cli@latest
npm install


I think you shoud update to angualr cli 1.0 :
npm uninstall -g @angular/cli
npm cache clean
npm install -g @angular/cli@latest
remove local project package:rm -rf node_modules dist # use rmdir on Windows
then install angular cli locally in your repo : npm install --save-dev @angular/cli@latest
finally : npm install
you should read over this for further infos: stories 1.0 update
https://github.com/angular/angular-cli/issues/5558


Angular CLI can now be found on NPM under @angular/cli instead of angular-cli, and has a minimum requirement of Node 6.9.0 or higher, together with NPM 3 or higher.
If you're using Angular CLI beta.28 or less, you need to uninstall the angular-cli package.
npm uninstall -g angular-cli
npm uninstall --save-dev angular-cli
To update Angular CLI to a new version, you must update both the global package and your project's local package.
Global package:
npm uninstall -g @angular/cli
npm cache clean
npm install -g @angular/cli@latest
Local project package:


rm -rf node_modules dist # use rmdir on Windows
npm install --save-dev @angular/cli@latest
npm install
F*** another error

npm cache clean
npm ERR! As of npm@5, the npm cache self-heals from corruption issues and data extracted from the cache is guaranteed to be valid. If you want to make sure everything is consistent, use 'npm cache verify' instead.
npm ERR!
npm ERR! If you're sure you want to delete the entire cache, rerun this command with --force.

npm ERR! A complete log of this run can be found in:

npm cache -f clean
npm WARN using --force I sure hope you know what you are doing.


+ @angular/cli@1.2.1
added 743 packages and updated 2 packages in 140.53s


linux mint 18.2 error

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules/@angular/cli/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
Those warnings are OK.

You should not and cannot do anything with them.  << wtf!
Note OPTIONAL DEPENDENCY, which means it is not strict.
https://github.com/angular/angular-cli/issues/6467


1 comment: