【问题标题】:npm hangs forever when installing ionic安装 ionic 时 npm 永远挂起
【发布时间】:2015-12-10 15:48:43
【问题描述】:

我在通过 npm 安装 Ionic 框架时遇到问题。我使用cntlm设置了代理,一切正常,我可以安装我想要的所有其他模块(yeoman,bower grunt,通常的东西:))。但是在安装 Ionic 时不知何故 npm 挂起...我有一个日志输出显示 npm 一直挂起而没有抛出任何类型的错误:

npm sill gunzTarPerm extractEntry node_modules/wrappy/test/basic.js
npm sill gunzTarPerm modified mode [ 'node_modules/wrappy/test/basic.js', 420, 4
38 ]
npm sill gunzTarPerm extractEntry node_modules/write-file-atomic/package.json
npm sill gunzTarPerm modified mode [ 'node_modules/write-file-atomic/package.jso
n', 420, 438 ]
npm sill gunzTarPerm extractEntry node_modules/write-file-atomic/.npmignore
npm sill gunzTarPerm modified mode [ 'node_modules/write-file-atomic/.npmignore'
, 420, 438 ]
npm sill gunzTarPerm extractEntry node_modules/write-file-atomic/README.md
npm sill gunzTarPerm modified mode [ 'node_modules/write-file-atomic/README.md',
 420, 438 ]
npm sill gunzTarPerm extractEntry node_modules/write-file-atomic/LICENSE
npm sill gunzTarPerm modified mode [ 'node_modules/write-file-atomic/LICENSE', 4
20, 438 ]
npm sill gunzTarPerm extractEntry node_modules/write-file-atomic/index.js
npm sill gunzTarPerm modified mode [ 'node_modules/write-file-atomic/index.js',
420, 438 ]
npm sill gunzTarPerm extractEntry node_modules/write-file-atomic/test/basic.js
npm sill gunzTarPerm modified mode [ 'node_modules/write-file-atomic/test/basic.
js', 420, 438 ]
npm sill addBundled read tarball     
npm sill cleanup remove extracted module
loadRequestedDeps ? netwo ¯ ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦

愚蠢的是,我已经启动并运行了它,但它花了几个小时的尝试和错误,不知何故,它在某些时候起作用了,我认为它与 node-gyp 或 python 有关...

【问题讨论】:

  • 我面临同样的问题。你有没有为此找到任何解决方案?

标签: ionic-framework npm npm-install


【解决方案1】:

This Github issue 通过升级到最新版本的 NodeJS 为我解决了这个问题。

基本上,您遇到此问题是因为您在 marchine 上安装的 NodeJS 版本与您正在安装的 Ionic 版本不兼容。

【讨论】:

    猜你喜欢
    • 2018-02-28
    • 2013-05-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-02-21
    • 2015-05-13
    • 2015-05-03
    相关资源
    最近更新 更多