配置Cordova(一)

最近开始研究Cordova,今天在Mac本上配置了一下环境,照着官方给的步骤,如下http://cordova.apache.org/docs/en/4.0.0/guide/cli/index.html#The%20Command-Line%20Interface

碰到一个问题,在配置$ sudo npm install -g cordova 这步的时候,终端提示错误:

Please try running this command again as root/Administrator.

于是上网找解决方案,最后解决了,方法如下:

在终端上输入sudo chown -R $USER /usr/local,按提示输入密码,再重新配置即可。

你可能感兴趣的:(配置Cordova(一))