我刚安装了依赖它的phonegap,但是当我尝试运行时
phonegap创建myproject
我收到以下消息:
TypeError: Not an integer
at Object.fs.writeSync (fs.js:537:18)
at Function.writeFileSync [as sync] (/usr/local/lib/node_modules/phonegap/node_modules/insight/node_modules/configstore/node_modules/write-file-atomic/index.js:114:10)
at Object.create.all.set (/usr/local/lib/node_modules/phonegap/node_modules/insight/node_modules/configstore/index.js:62:21)
at Object.Configstore (/usr/local/lib/node_modules/phonegap/node_modules/insight/node_modules/configstore/index.js:27:11)
at new Insight (/usr/local/lib/node_modules/phonegap/node_modules/insight/lib/index.js:38:34)
at Object.<anonymous> (/usr/local/lib/node_modules/phonegap/node_modules/cordova/src/telemetry.js:37:15)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
注意:我使用基于linux debian的发行版
答案 0 :(得分:0)
只需更新您的节点和phonegap版本即可使用。