简体   繁体   English

npm WARN deprecated tslint@6.1.2: TSLint 已被弃用,取而代之的是 ESLint

[英]npm WARN deprecated tslint@6.1.2: TSLint has been deprecated in favor of ESLint

when i run ng new it shows当我运行 ng new 它显示

\ Installing packages...npm WARN deprecated tslint@6.1.2: TSLint has been deprecated in favor of ESLint. \ 安装包...npm WARN deprecated tslint@6.1.2: TSLint 已被弃用,取而代之的是 ESLint。 Please see https://github.com/palantir/tslint/issues/4534 for more information.请参阅https://github.com/palantir/tslint/issues/4534了解更多信息。

npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated request@2.88.2: request 已被弃用,参见https://github.com/request/request/issues/3142

npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. npm WARN 已弃用 chokidar@2.1.8:Chokidar 2 将在节点 v14+ 上中断。 Upgrade to chokidar 3 with 15x less dependencies.升级到 chokidar 3,依赖项减少 15 倍。 npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. npm WARN 已弃用 fsevents@1.2.13:fsevents 1 将在节点 v14+ 上中断,并且可能使用不安全的二进制文件。 Upgrade to fsevents 2.升级到 fsevents 2。

npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm WARN 已弃用 urix@0.1.0:请参阅https://github.com/lydell/urix#deprecated

npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm WARN 已弃用 resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated

npm ERR. npm 错误。 Unexpected end of JSON input while parsing near '..:-grunt-tasks"."^4.0.0'在“..:-grunt-tasks”附近解析时 JSON 输入意外结束。“^4.0.0”

npm ERR: A complete log of this run can be found in: npm ERR:此运行的完整日志可在以下位置找到:

npm ERR! npm 错误!
C:\Users\Abitech\AppData\Roaming\npm-cache_logs\2020-06-02T16_28_06_793Z-debug.log C:\Users\Abitech\AppData\Roaming\npm-cache_logs\2020-06-02T16_28_06_793Z-debug.log

× Package install failed, see above. × Package 安装失败,见上文。 The Schematic workflow failed.原理图工作流程失败。 See above.看上面。

  1. npm cache clean --force npm 缓存清理 --force
  2. npm uninstall -g @angular/cli npm 卸载 -g @angular/cli
  3. npm install -g @angular/cli npm install -g @angular/cli
  4. ng new projectName ng 新项目名称

This worked for me这对我有用

i had the exact same error so i followed these steps and then i was able to create a new project successfully我遇到了完全相同的错误,所以我按照这些步骤操作,然后我能够成功创建一个新项目

1) Run ( Win + R ) then type %AppData%, then clear the npm-cache folder, ie delete that folder manually. 1) 运行 ( Win + R ) 然后输入 %AppData%,然后清除 npm-cache 文件夹,即手动删除该文件夹。 2) Then again run the command ng new project name 2)然后再次运行命令 ng new project name

This worked for me:)这对我有用:)

(...) TSLint has been deprecated in favor of ESLint. (...) TSLint 已被弃用,取而代之的是 ESLint。

If npm update tslint didn't help, you can install and use eslint instead.如果npm update tslint没有帮助,您可以安装并使用eslint

Url: https://www.npmjs.com/package/eslint Url: https://www.npmjs.com/package/eslint

1.Run npm cache clean --force 2.Manually delete npm and npm-cache folders from AppData/Roaming folder (Win + R, Type %AppData% and enter) 3.Run Node Installer and repair 4.Reinstall npm install -g @angular/cli 5.Rerun ng new newApp Worked:) 1.Run npm cache clean --force 2.Manually delete npm and npm-cache folders from AppData/Roaming folder (Win + R, Type %AppData% and enter) 3.Run Node Installer and repair 4.Reinstall npm install -g @angular/cli 5.Rerun ng new newApp 工作:)

Just delete npm-cache folder in 'C:\Users\User Name \AppData\Roaming' and recreate project只需删除'C:\Users\User Name \AppData\Roaming'中的 npm-cache 文件夹并重新创建项目

Just run:赶紧跑:

npm cache clean --force npm 缓存清理 --force

npm install -g @angular/cli@latest npm install -g @angular/cli@latest

npm cache verify npm 缓存验证

npm install npm@latest -g npm 安装 npm@latest -g

Then:然后:

ng new projectName ng 新项目名称

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 WARN deprecated request@2.88.2: request has been deprecated, npm WARN deprecated har-validator@5.1.5 - WARN deprecated request@2.88.2: request has been deprecated, npm WARN deprecated har-validator@5.1.5 npm WARN不推荐使用npmconf@2.1.2:此软件包已重新集成到npm中,并且相对于npm已过时 - npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm npm WARN弃用了npmconf@2.1.2:这个软件包已经重新集成到npm中,现在已经过时了npm - npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm npm WARN不推荐使用的minimatch - npm WARN deprecated minimatch npm WARN deprecated @npmcli/move-file@2.0.1:此功能已移至@npmcli/fs - npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs npm install 请求已被弃用 - npm install request has been deprecated NestJS 安装 npm WARN 弃用 - NestJS installation npm WARN deprecated Angular cli 未安装。 (npm warn deprecated @npmcli/move-file@2.0.1:此功能已移至@npmcli/fs) - Angular cli is not installing. (npm warn deprecated @npmcli/move-file@2.0.1: this functionality has been moved to @npmcli/fs) 如何修复“npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142”错误Windows 10? - How to fix "npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142" error in Windows 10? npm 安装错误和 npm WARN 已弃用 - npm Install Errors & npm WARN deprecated
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM