Angular 9问题。无法运行初始应用程序

问题描述 投票:0回答:1

谁能帮我解决以下问题?

我是按照以下的方法解决的 https:/v8.angular.ioguidesetup-local#prerequisites。 在我的windows机器上设置初始应用程序的文档,但面临一个问题。

操作系统。 Windows 10, 64位

问题。 npm安装 是失败的。

回应:CREATE my-appe2esrcapp.po.ts (301 bytes)-安装包...npm WARN deprecode :CREATE my-appe2esrcapp.po.ts (301 bytes)- Installing packages...npm WARN deprecated [email protected]: TSLint已经被废弃,改为ESLint。请看 https:/github.compalantirtslintissues4534。 获取更多信息。

npm WARN deprecated [email protected]: request has been deprecated, see https:/github.comrequestrequestissues3142。

npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. 升级到chokidar 3,减少15倍的依赖性。

npm WARN deprecated [email protected]: fsevents 1 将会在 node v14+ 上中断,并且可能会使用不安全的二进制文件。升级到fsevents 2。

npm WARN deprecated [email protected]: 请看 https:/github.comlydellurix#deprecated。

npm WARN deprecated [email protected]: https:/github.comlydellresolve-url#deprecated。

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules\rollupnode_modules\fsevents):

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os": "darwin", "arch": "any"}。(current: {"os": "win32", "arch": "x64"})

npm ERR! 在'...mark':"~1", "microtime'附近进行解析时,JSON输入的意外结束。

npm ERR! 本次运行的完整日志请参见:npm ERR! .AppData/Roaming/npm-cache_logs/2020-05-05T03_21_42_870Z-debug.log× 包安装失败,见上图。

原理图工作流失败。见上图。

angular angular9 darwin fsevents microtime
1个回答
2
投票

我也面临同样的问题,直到今天早上,请尝试安装更新chokidar到3.+版本。

npm install chokidar

另外,可以尝试在清除npm缓存后重新安装Angular CLI。

npm cache clean --force

npm install -g @angularcli@latest

© www.soinside.com 2019 - 2024. All rights reserved.