没有提供离子应用程序。警告:找不到node_modules目录,是否需要运行npm install?

时间:2017-03-06 14:42:11

标签: node.js cordova ionic2 command-line-interface npm-install

我是离子框架的新手。我已经安装了node js-v6.10.0npm版本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

我不知道如何处理它。请协助

1 个答案:

答案 0 :(得分:2)

You should run:

npm install

from the command line.

It will install the dependencies in the node_modules directory.