我使用6号角创建了我的项目,但是由于某些原因我想回滚到5号角,我尝试了以下命令,但是显示了一些错误。
节点版本-10.4.1
npm版本6.1.0
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @angular/cli@1.7.
npm ERR! notarget In most cases you or one of your dependencies are
requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\TEKIZMA USER\AppData\Roaming\npm-cache\_logs\2018-06-
27T0
_21_53_446Z-debug.log
答案 0 :(得分:1)
请尝试遵循此Stack Answer
根据我的知识,先降级NPM,然后降级。 而且您可能还需要阅读this。
尝试这种方式
npm install -g @angular/cli@YOUR_DESIRED_VERSION
答案 1 :(得分:-1)