npm安装角度材料数据表

时间:2017-03-13 07:15:06

标签: npm angular-material npm-install

我正在胜利10.在我的工作文件夹上安装 angular-material-data-table .npm install angular-material-data-table --save.its给了我以下错误...,

C:\xampp\htdocs\mission>npm install angular-material-data-table --save
npm WARN saveError ENOENT: no such file or directory, open
'C:\xampp\htdocs\mission\package.json' C:\xampp\htdocs\mission
+-- UNMET PEER DEPENDENCY angular@^1.4.0
+-- UNMET PEER DEPENDENCY angular-material@^1.0.0 `-- angular-material-data-table@0.10.10

npm WARN enoent ENOENT: no such file or directory, open
'C:\xampp\htdocs\mission\package.json' npm WARN
angular-material-data-table@0.10.10 requires a peer of angular@^1.4.0
but none was installed. npm WARN angular-material-data-table@0.10.10
requires a peer of angular-material@^1.0.0 but none was installed. npm
WARN mission No description npm WARN mission No repository field. npm
WARN mission No README data npm WARN mission No license field.

1 个答案:

答案 0 :(得分:0)

我想你需要学习如何使用npm:

  1. 通过project.json

  2. 创建npm init文件
  3. 比添加所有必需的库:

    npm install angular@1.4.7 --save
    npm install angular-material@1.0.0 --save

  4. 之后,您可以安装所需的模块

    npm install angular-material-data-table --save