我怎样才能创建一个离子项目?

时间:2022-04-20 04:28:57

I'm following the link Ionic reference

我正在关注链接离子参考

I have installed node.js v0.12.9.

我已经安装了node.js v0.12.9。

Then run the command npm install -g cordova ionic

然后运行命令npm install -g cordova ionic

Then tried the command ionic start test_ionic tabs

然后尝试命令ionic start test_ionic tabs

I am Working on Windows 7.

我正在使用Windows 7。

I'm getting the following error,

我收到以下错误,

C:\Users\prince>ionic start test_ionic tabs
shell.js: internal error
 Error: EBUSY, resource busy or locked 'C:\Users\prince\AppData\Local\Temp\shelljs_758b61ac3625b179c295'
at Error (native)
at Object.fs.openSync (fs.js:500:18)
at Object.fs.writeFileSync (fs.js:1099:15)
at execSync (C:\Users\prince\AppData\Roaming\npm\node_modules\ionic\node_modules\shelljs\src\exec.js:67:57)
at Object._exec (C:\Users\prince\AppData\Roaming\npm\node_modules\ionic\node_modules\shelljs\src\exec.js:179:12)
at Object.exec (C:\Users\prince\AppData\Roaming\npm\node_modules\ionic\node_modules\shelljs\src\common.js:168:23)
at Object.getCordovaInfo (C:\Users\prince\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\lib\info.js:50:24)
at Object.gatherInfo (C:\Users\prince\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\lib\info.js:241:8)
at Object.checkRuntime (C:\Users\prince\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\lib\info.js:288:19)
at Object.doRuntimeCheck (C:\Users\prince\AppData\Roaming\npm\node_modules\ionic\lib\cli.js:558:10)

Whats wrong with this?

这有什么不对吗?

1 个解决方案

#1


1  

There are really simple commands to install the ionic on windows

有很简单的命令可以在Windows上安装离子

 npm install -g ionic

Create the project Now, we need to create a new Cordova project somewhere on the computer for the code for our app:

创建项目现在,我们需要在计算机上的某个位置创建一个新的Cordova项目,以获取我们应用的代码:

ionic start todo blank

Configure Platforms Now, we need to tell ionic that we want to enable the iOS and Android platforms. Note: unless you are on MacOS, leave out the iOS platform:

配置平台现在,我们需要告诉离子我们想要启用iOS和Android平台。注意:除非您使用的是MacOS,否则请忽略iOS平台:

cd blank
ionic platform add ios
ionic platform add android

#1


1  

There are really simple commands to install the ionic on windows

有很简单的命令可以在Windows上安装离子

 npm install -g ionic

Create the project Now, we need to create a new Cordova project somewhere on the computer for the code for our app:

创建项目现在,我们需要在计算机上的某个位置创建一个新的Cordova项目,以获取我们应用的代码:

ionic start todo blank

Configure Platforms Now, we need to tell ionic that we want to enable the iOS and Android platforms. Note: unless you are on MacOS, leave out the iOS platform:

配置平台现在,我们需要告诉离子我们想要启用iOS和Android平台。注意:除非您使用的是MacOS,否则请忽略iOS平台:

cd blank
ionic platform add ios
ionic platform add android