Tôi đã cố gắng để lắp đặt Ionic framework trong hệ thống Windows 8 của tôi và đã cố gắng để cài đặt Cordova đầu tiên.npm ERR! đăng nhập phân tích lỗi json - Trong khi cố gắng để cài đặt Cordova cho Ionic Framework trong Windows 8
Tôi nhận được lỗi này trong khi cố gắng cài đặt Cordova, nói rằng
Your environment has been set up for using Node.js 0.12.4 (x64) and npm.
C:\Users\Sworup>npm install -g cordova ionic
npm ERR! registry error parsing json
npm ERR! tar.unpack untar error C:\Users\Sworup\AppData\Local\Temp\npm-1424-df7f
43fe\registry.npmjs.org\underscore\-\underscore-1.7.0.tgz
npm ERR! tar.unpack untar error C:\Users\Sworup\AppData\Local\Temp\npm-1424-df7f
43fe\registry.npmjs.org\npm\-\npm-2.1.3.tgz
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs
\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "cordova" "ionic"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! syscall read
npm ERR! network read ECONNRESET
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settin
gs.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! tar.unpack untar error C:\Users\Sworup\AppData\Local\Temp\npm-1424-df7f
43fe\registry.npmjs.org\prompt\-\prompt-0.2.12.tgz
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs
\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "cordova" "ionic"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! unexpected eof
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Sworup\npm-debug.log
C:\Users\Sworup>
cấu hình hệ thống của tôi là như sau:
C:\Windows\System32>npm -v
2.10.1
C:\Windows\System32>node -v
v0.12.4
C:\Windows\System32>git --version
git version 1.9.4.msysgit.1
Tôi đã làm
C:\Windows\System32>npm cache clear
trước chạy lệnh cài đặt để không sử dụng.
Tôi đã thử thay đổi sổ đăng ký thành http vẫn không sử dụng.
Tôi đã thử cài đặt Ionic framework riêng, vẫn không có may mắn.
Tôi đã thử cài đặt Phonegap, các lỗi tương tự như trên.
Tôi chỉ bị kẹt vào thời điểm này và không biết phải làm gì.
cập nhật lên phiên bản mới nhất [http://askubuntu.com/questions/426750/how-can-i-update -my-nodejs-to-the-latest-version] (http://askubuntu.com/questions/426750/how-can-i-update-my-nodejs-to-the-latest-version) –