C:\Users\lenovo>npm config set registry https://registry.npmmirror.com
C:\Users\lenovo>npm config list ; "builtin" config from D:\Nodejs\node_modules\npm\npmrc
prefix="C:\\Users\\lenovo\\AppData\\Roaming\\npm"
; "user" config from C:\Users\lenovo\.npmrc
registry="https://registry.npmmirror.com"
; node binlocation= D:\Nodejs\node.exe ; nodeversion= v18.19.0 ; npm localprefix= C:\Users\lenovo ; npmversion=10.2.3 ; cwd = C:\Users\lenovo ; HOME = C:\Users\lenovo ; Run `npm config ls -l` to show all defaults.
C:\Users\lenovo>npm i -g @angular/cli
added 232 packages in 11s
运行脚手架工具创建空白项目
1 2 3 4 5 6 7 8 9
D:\Angular_Learning\Project>ng newmyngapp01 ? Which stylesheet format would you like to use? CSS ? Do you want to enable Server-Side Rendering(SSR) and Static Site Generation(SSG/Prerendering)? Yes CREATE myngapp01/angular.json (2853 bytes) CREATE myngapp01/package.json (1272 bytes) CREATE myngapp01/README.md (1090 bytes) CREATE myngapp01/tsconfig.json (936 bytes) CREATE myngapp01/.editorconfig (290 bytes) CREATE myngapp01/.gitignore (590 bytes)