安装离子时,npm永远挂起

时间:2015-12-10 15:48:43

标签: python npm ionic-framework ionic npm-install

我在通过npm安装Ionic Framework时遇到问题。我使用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有关......

1 个答案:

答案 0 :(得分:0)

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

基本上,由于您在游戏机上安装的NodeJS版本与正在安装的Ionic版本不兼容,因此您遇到此问题。

相关问题