Ionic2第一个项目错误

时间:2016-06-21 13:52:44

标签: ionic-framework ionic2

我试图遵循这些指示:http://ionicframework.com/docs/v2/getting-started/installation/

但是这行有错误: ionic start cutePuppyPics --v2

Creating Ionic app in folder C:\dev\debug npm\cutePuppyPics based on tabs projec
t
Downloading: https://github.com/driftyco/ionic2-app-base/archive/master.zip
Error with start Error: read ECONNRESET
    at exports._errnoException (util.js:870:11)
    at TLSWrap.onread (net.js:552:26)
Error Initializing app: Error: read ECONNRESET
 Error: read ECONNRESET
    at exports._errnoException (util.js:870:11)
    at TLSWrap.onread (net.js:552:26)
Caught exception:
 Error: read ECONNRESET
    at exports._errnoException (util.js:870:11)
    at TLSWrap.onread (net.js:552:26)

Mind letting us know? https://github.com/driftyco/ionic-cli/issues

有人可以帮助我吗?

先谢谢!

1 个答案:

答案 0 :(得分:1)

就像@ AnatolyS所说,这似乎是一个网络问题。下载后,(并解压缩)打开同一级别的控制台,您会看到名为package.json的文件并运行npm install。这将为项目安装所有必需的依赖项。

完成后,运行ionic serve,应在浏览器中打开应用程序。