2016-06-30 157 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。现在模拟器工作正常。