angular 安装 使用ng v报错如下An unhandled exception occurred: ENOENT: no such file or directory, scandir 'D:\ss\node_modules' See "C:\Users\zgmi\AppData\Local\Temp\ng-3WHs0j\angular-errors.log" for further details.
See “C:\Users\zgmi\AppData\Local\Temp\ng-3WHs0j\angular-errors.log” for further details.)
命令行进入D盘ss文件夹下,然后执行ng new angulardemo1,这样会产生node_modules文件,然后执行npm init (这个是为了产生package-json)
到intall ing packages时使用cnpm下载包这样快,不用也行
npm init
然后在文件夹下运行ng v就可以了