Nativescript共享代码-要求-angular9不起作用
难道“共享代码”与最新的CLI9不兼容吗 我用这个命令得到:Nativescript共享代码-要求-angular9不起作用,angular,nativescript,angular9,Angular,Nativescript,Angular9,难道“共享代码”与最新的CLI9不兼容吗 我用这个命令得到: ng new MyApp --collection @ nativescript / schematics --shared --sample 出现以下错误消息: npm警告已弃用fsevents@1.2.13:fsevents 1将在节点v14+上中断,并且可能使用不安全的二进制文件。升级至fsevents 2。 npm警告不推荐的解决方案-url@0.2.1: npm错误!代码 npm错误!NotTarget未找到@angul
ng new MyApp --collection @ nativescript / schematics --shared --sample
出现以下错误消息:
npm警告已弃用fsevents@1.2.13:fsevents 1将在节点v14+上中断,并且可能使用不安全的二进制文件。升级至fsevents 2。
npm警告不推荐的解决方案-url@0.2.1:
npm错误!代码
npm错误!NotTarget未找到@angular/http@~9.1.0的匹配版本。
npm错误!notarget在大多数情况下,您或您的某个依赖项正在请求
npm错误!不要将不存在的包版本作为目标。
npm错误!敌人对你不进行攻击
npm错误!NotTarget它被指定为“CommunityPlanner”的依赖项
npm错误!无目标
npm错误!此运行的完整日志可在以下位置找到:
npm错误!C:\Users\patri\AppData\Roaming\npm-cache\u logs\2020-06-21T09\u 33\u 18\u 448Z-debug.log
×程序包安装失败,请参见上文。
原理图工作流失败。请参见上文。这是nativescript依赖关系蓝图当前的一个问题。 资料来源: @angular/http已弃用,没有版本9,http库位于@angular/common内 解决方法:
运行
ng new MyApp--collection@nativescript/schematics--shared--sample
后,应该创建项目文件夹
转到项目文件夹中的package.json
ng new MyApp--collection@nativescript/schematics--shared--sample
获取此错误:
Installing packages...npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @angular/http@~9.1.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 'myProject'
npm ERR! notarget
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/me/.npm/_logs/2020-08-02T07_34_55_277Z-debug.log
✖ Package install failed, see above.
The Schematic workflow failed. See above.
安装软件包…npm警告已弃用的内核-js@2.6.11:core js@