This package is for angular 2/3/4/5 ng-cookie will be merge to ng-storage, Please refer https://github.com/wangta69/ng-storages Installation npm install ng-cookie import { CookieService } from 'ng-cookie' @NgModule({ providers: [ CookieService ] }) import { CookieService } from 'ng-cookie'