Ionic在Linux上构建android

时间:2016-10-19 08:39:43

标签: javascript android angularjs linux ionic-framework

当我运行ionic build android时,我收到此错误:

shell.js: internal error
Error: ENOENT: no such file or directory, open '/home/darko/Downloads/todo/false/shelljs_2da7bb00de48ebd25547'
    at Error (native)
    at Object.fs.openSync (fs.js:584:18)
    at Object.fs.writeFileSync (fs.js:1224:33)
    at execSync (/usr/local/lib/node_modules/ionic/node_modules/shelljs/src/exec.js:56:6)
    at Object._exec (/usr/local/lib/node_modules/ionic/node_modules/shelljs/src/exec.js:179:12)
    at Object.exec (/usr/local/lib/node_modules/ionic/node_modules/shelljs/src/common.js:168:23)
    at Object.getLinuxEnvironmentInfo (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/lib/info.js:187:24)
    at Object.getOsEnvironment (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/lib/info.js:204:20)
    at Object.t (/usr/local/lib/node_modules/ionic/lib/utils/stats.js:147:15)
    at Object.run (/usr/local/lib/node_modules/ionic/lib/cli.js:135:16)

请注意错误路径:

 ENOENT: no such file or directory, open '/home/darko/Downloads/todo/false/shelljs_2da7bb00de48ebd25547'

包含目录false,我没有。我认为应该是node_modules而不是false。

此外,我在此错误之前遇到了一些问题,我以某种方式解决了这个问题,但我认为随着前进,我会遇到更多错误。我做的事情基本上是错误的吗?

0 个答案:

没有答案