升级node到stable版本

node upgrade

最近打算学习下angular,发现安装时候node版本低,所以升级下

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
liuliancao@liuliancao-dev:~$ sudo npm i -g n && sudo n stable
/usr/local/bin/n -> /usr/lo

cal/lib/node_modules/n/bin/n
+ n@7.2.2
updated 1 package in 4.293s
   installed : v14.17.0 (with npm 6.14.13)
liuliancao@liuliancao-dev:~$ sudo npm install -g @angular/cli
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
/usr/local/bin/ng -> /usr/local/lib/node_modules/@angular/cli/bin/ng

> @angular/cli@12.0.2 postinstall /usr/local/lib/node_modules/@angular/cli
> node ./bin/postinstall/script.js

? Would you like to share anonymous usage data with the Angular Team at Google under
Googles Privacy Policy at https://policies.google.com/privacy? For more details and
how to change this setting, see https://angular.io/analytics. Yes
+ @angular/cli@12.0.2
updated 234 packages in 72.575s
liuliancao@liuliancao-dev:~$