每次我尝试安装任何软件包,或者即使我尝试做,npm install我仍然会收到此错误.我不知道为什么我会收到错误.我是Angular 4的新手,它只有一个星期,所以任何任何线索都将受到赞赏.我使用节点-v 8.8.1和@ angular/cli 1.4.9.
这是我的package.json.
{
"name": "events-across",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "^4.2.4",
"@angular/common": "^4.2.4",
"@angular/compiler": "^4.2.4",
"@angular/core": "^4.2.4",
"@angular/forms": "^4.2.4",
"@angular/http": "^4.2.4",
"@angular/platform-browser": "^4.2.4",
"@angular/platform-browser-dynamic": "^4.2.4",
"@angular/router": "^4.2.4",
"angular-font-awesome": "^2.3.7",
"angular4-carousel": "^3.1.8",
"bootstrap": "^4.0.0-beta",
"core-js": "^2.4.1",
"font-awesome": "^4.7.0",
"ng2-opd-popup": "^1.1.21",
"rxjs": "^5.4.2",
"zone.js": "^0.8.14"
},
"devDependencies": {
"@angular/cli": "1.4.9",
"@angular/compiler-cli": …Run Code Online (Sandbox Code Playgroud) 我正在尝试在仪表板页面中插入通知工具提示,但工具提示无法正常工作.我是Angular的新手,所以任何关于此的线索都将受到高度赞赏.
module.ts
..从'@ angular/material'导入{MatTooltipModule}; ..
@NgModule({
..
MatTooltipModule
..})
Run Code Online (Sandbox Code Playgroud)
component.html
<div class="notifications">
<i class="fa fa-bell fa-2x" aria-hiden="true" matTooltip="Tooltip!"></i>
</div>
Run Code Online (Sandbox Code Playgroud)