Phone gap 3.0在iOS上创建项目 [英] Phone gap 3.0 create project on iOS
本文介绍了Phone gap 3.0在iOS上创建项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在Mac上安装PhoneGap,但是我收到以下错误:
I am trying to install PhoneGap on Mac, but I'm getting the following error:
sudo npm install -g phonegap
npm http GET https://registry.npmjs.org/phonegap
npm http 304 https://registry.npmjs.org/phonegap
npm ERR! Error: EACCES, mkdir '/usr/local/lib/node_modules/phonegap'
npm ERR! { [Error: EACCES, mkdir '/usr/local/lib/node_modules/phonegap']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/usr/local/lib/node_modules/phonegap',
npm ERR! fstream_type: 'Directory',
npm ERR! fstream_path: '/usr/local/lib/node_modules/phonegap',
npm ERR! fstream_class: 'DirWriter',
npm ERR! fstream_stack:
npm ERR! [ '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23',
npm ERR! '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:37:53',
npm ERR! 'Object.oncomplete (fs.js:107:15)' ] }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 12.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "phonegap"
npm ERR! cwd /Users/btbp
npm ERR! node -v v0.10.17
npm ERR! npm -v 1.3.8
npm ERR! path /usr/local/lib/node_modules/phonegap
npm ERR! fstream_path /usr/local/lib/node_modules/phonegap
npm ERR! fstream_type Directory
npm ERR! fstream_class DirWriter
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/usr/local/lib/node_modules/phonegap'
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:37:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR!
npm ERR! Additional logging details can be found in:
/Users/usr/npm-debug.log
npm ERR! not ok code 0
我无法创建项目。请建议如何使其工作。
提前感谢您的建议。
--Avinash
I am not able to create project . Please suggest how to make it work.
Thanks in advance for your suggestions.
--Avinash
推荐答案
http://iphonedevlog.wordpress.com/2013/08/16/using-phonegap-3-0-cli-on-mac-osx-10-to-build-ios-and-android-projects/ [ ^ ]
为iOS设置phonegap 3.0
--Avinash
http://iphonedevlog.wordpress.com/2013/08/16/using-phonegap-3-0-cli-on-mac-osx-10-to-build-ios-and-android-projects/[^]
Setting up phonegap 3.0 for iOS
--Avinash
这篇关于Phone gap 3.0在iOS上创建项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文