![](/img/trans.png)
[英]I am getting this error while uploading my project to Heroku. I am using MapBox and node.js
[英]I am getting an error while creating a Project of Phonegap through Node.js in my mac
我在Mac上安装了Node Js和Git。 通过Node JS,我正在下载phonegap,而不是在桌面上创建其项目。 这是我得到的回报,有人可以告诉我做错了什么吗?
Aleems-MacBook-Pro:desktop aleemahmad$ phonegap create Cartoonsmart
/usr/local/lib/node_modules/phonegap/lib/phonegap/util/connect-proxy.js:21
fs.readFile(settings, (err, data) => {
^^
SyntaxError: Unexpected token =>
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/usr/local/lib/node_modules/phonegap/lib/phonegap/serve.js:9:23)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
Aleems-MacBook-Pro:desktop aleemahmad$
要在Phonegap中创建新项目,命令是
phonegap创建[文件夹名称] [程序包名称] [项目名称]
例如 ::
phonegap创建演示com.demo演示。
在这第一个“ Demo”中是文件夹名称,com.demo是程序包名称,Demo是项目名称/应用程序名称。
试试这个,它将为您工作。
谢谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.