【发布时间】:2018-09-02 03:02:52
【问题描述】:
我尝试按照 Angular cli 教程创建 Angular 应用程序。但是,它在量角器 5.4.0 上引发错误。
这是错误信息:
npm ERR! code ETARGET
npm ERR! notarget No matching version found for protractor@~5.4.0
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! notarget
npm ERR! notarget It was specified as a dependency of 'angulartest6'
npm ERR! notarget
量角器的最新版本是5.4.0。我也尝试手动安装,但它抛出了这个错误: npm 错误! notarget 没有找到 protractor@5.4.0 的匹配版本
有什么解决方法使我不会收到此错误?
【问题讨论】: