0

ionic g 页面测试无法生成页面并给我以下错误:

离子g页面测试

Error: ENOENT: no such file or directory, scandir '...\node_modules\ionic-angular\templates\page'
    at Error (native)
    at Object.fs.readdirSync (fs.js:856:18)
    at getTemplatesInDir (..\AppData\Roaming\npm\node_modules\ionic\node_modules\@ionic\app-generators\index.js:23931:65)
    at Generator.renderAndWriteTemplates (..\AppData\Roaming\npm\node_modules\ionic\node_modules\@ionic\app-generators\index.js:25309:
116)
    at ..\AppData\Roaming\npm\node_modules\ionic\node_modules\@ionic\app-generators\index.js:25304:26


ENOENT: no such file or directory, scandir '..\node_modules\ionic-angular\templates\page' (CLI v2.1.4)

Your system information:

Cordova CLI: 6.3.1
Gulp version:  CLI version 3.9.0
Gulp local:   Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.11
Ionic CLI Version: 2.1.4
Ionic App Lib Version: 2.1.2
OS: Windows 7 SP1
Node Version: v5.1.0

怎么了???

请帮忙 !!

4

2 回答 2

0

也许你应该重新安装离子

于 2016-10-27T06:32:09.333 回答
0

也许您在根目录以外的目录中运行命令。移动到您的项目根目录并重新运行该命令。

于 2018-02-28T12:03:57.490 回答