2016-06-30 82 views
2

我已按照此link中的步驟操作。當我運行使用命令tns run android --emulator,我在命令提示符下tns run android --emulator not working - NativeScript

Configuring > 0/4 projects > root projectError: read ECONNRESET 
    at exports._errnoException (util.js:890:11) 
    at TCP.onread (net.js:552:26) 

繼得到了以下錯誤僅供您參考錯誤截圖。

tns emulator error

有人可以幫我解決這個問題呢?提前致謝。

+0

我認爲這是由舊模塊造成的。關於這一點,你可以按照這裏的步驟 - https://docs.nativescript.org/releases/upgrade-instructions更新NativeScript。另外刪除項目中的'/ platform'和'/ node_modules'文件夾。如果你過期的同一個項目,你可以嘗試使用Genymotion - https://www.genymotion.com/,它是免費的個人使用。 –

回答

1

我已通過使用命令npm install [email protected] --save更新tns-core-modules解決了此問題。之後,我在系統啓動時啓用了BIOS中的Virtualization Technology。現在模擬器工作正常。