当我尝试将任何平台添加到我的Apache Cordova项目中或甚至只是列出它们时,它会给我以下错误:
path.js:424
var path = (i >= 0) ? arguments[i] : process.cwd();
^
Error: ENOENT: no such file or directory, uv_cwd
at Error (native)
at Object.posix.resolve (path.js:424:50)
at Function.Module._resolveLookupPaths (module.js:263:17)
at Function.Module._resolveFilename (module.js:330:31)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object.<anonymous> (/usr/lib/node_modules/cordova/bin/cordova:40:11)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
答案 0 :(得分:3)
似乎你不是在cordova项目档案。您应该将目录更改为项目的根目录。告诉我它是否适合你。