Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
332 views
in Technique[技术] by (71.8m points)

angular - Why i get warning that my global version is bigger then my local. Where the local is coming from?

I wanted to use angular version 10 so i installed it

npm install -g @angular/cli@10

when i check

ng --version

i get

Angular CLI: 7.0.2
Node: 10.23.2
OS: win32 x64
Angular:

if i try to run in my folder

ng new my-app

i get warning

Your global Angular CLI version (10.2.1) is greater than your local
version (7.0.2). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false".

i don't understand - when i installed only the angular version 10, i get even warning for angular 7 ?

question from:https://stackoverflow.com/questions/65930254/why-i-get-warning-that-my-global-version-is-bigger-then-my-local-where-the-loca

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

When it refers to local version it is application dependency so, check version of @angular/cli in devDependencies block in package.json file.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...