无法配置ionic v1现有项目

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

我获得了具有以下依赖版本的现有离子旧项目的代码库。我无法配置或运行项目。

我已从git克隆项目并运行npm install。其显示以下错误。

npm计时阶段:rollbackFailed可选以0ms npm计时完成stage:runTopLevelLifecycles在24222ms npm谓词堆栈中完成错误:PassThrough.onclose上的npm动词堆栈过早关闭(/usr/local/Cellar/node@10/10.18.0/lib/node_modules/npm/node_modules/end-of-stream/index.js:47:67)PassThrough.emit(events.js: 203:15)npm动词在nickCloseNT(internal / streams / destroy.js:68:8)npm动词处堆叠堆栈在process._tickCallback(内部/进程/next_tick.js:63:19)npm动词cwd/用户/苹果/文档/代码/ Source / SourceCode / prama-select-user-type-3c9d5653606bf079b7c2b60c51bd52b2ccf5967a / codebase / moodleapp npm动词Darwin 18.6.0 npm动词argv“ /usr/local/Cellar/node@10/10.18.0/bin/node”“ / usr / local / opt / node @ 10 / bin / npm”“安装”“ --verbose” npm动词节点v10.18.0 npm动词npm v6.13.4 npm错误!提前关闭npm动词出口[1,true] npm计时npm在24694ms中完成

版本信息: Ionic: 2.2.1 Cordova: 7.1.0 Cordova Android platform: 8.0.0 Node: 10.16.0 NPM: 6.9.0

cordova ionic-framework npm ionic2 moodle-mobile
1个回答
0
投票

您可以通过查看您的网络是否有代理来禁止下载过程,从而解决该问题。某些公司的网络启用了防火墙,这可能会导致您出现此问题。您可以切换到不安全的网络(例如移动网络中的热点),它应该可以为您工作。

也可以尝试在CLI中运行它

> npm config set registry http://registry.npmjs.org/

然后重试。

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