, but we know that the environment is sometimes It is easy to configure, sometimes it will be angry, and different operating systems, the problems that appear are not the same. I installed it today, stepped on a few pits, and shared it here.
NodeJS, NPMAccording to the official tutorial requirements:
Verify That You are running at Least Node.js Version 8.x or greater And NPM Version 5.x or greater by running node -v and npm -v in a Terminal / console window. Older Versions Product Errors, But Nei Versions Are Fine.
So to upgrade
Here us Use N
If the above process is too slow, we must update the source of npm
Angular-CLI or the source is required.
Can be replaced here because the back is installed
, because whenn
is used, the creation of the file is required, It is still very troublesome after the configuration of the permissions will be made.The above is mentioned above, and must change the domestic source when installing, and then install.
Sudo npm install -g @ Angular / CLI
After this installation, it is probably like this:
The two lines of the last side are most important. Then follow the tutorial, look at the version:ng The command.
This is because there is no command in the system command, all the people can't use
Sudo ln -S / OPT / Node / bin / ng / usr / local / bin / ng
Then you can use it:
It is installed here, and the latter preliminary construction Angular
The above is all of this article, I hope to help everyone, I hope everyone will support Tumi Cloud.