我是离子框架的新手。我已经安装了node js-v6.10.0
和npm
版本3.10.10以及ionic
版本-2.2.1
创建我的第一个应用程序后,当我尝试使用离子实验室服务它。
我收到以下错误
$ **ionic lab**
******************************************************
Dependency warning - for the CLI to run correctly,
it is highly recommended to install/upgrade the following:
Please install your Cordova CLI to version >=4.2.0 `npm install -g cordova`
******************************************************
WARN: No node_modules directory found, do you need to run npm install?
There was an error serving your Ionic application: Unable to run spawn command E rror: spawn C:\WINDOWS\system32\cmd.exe;C:\Users\SurajLifeean\AppData\Roaming\Co mposer\vendor\bin;C:\Program Files\nodejs\node_modules\npm\bin ENOENT
我不知道如何处理它。请协助
答案 0 :(得分:2)
You should run:
npm install
from the command line.
It will install the dependencies in the node_modules
directory.