Я пытаюсь установить Angular / CLI на мою систему Ubuntu.
Ubuntu 18.04.4 LTS 64 бит
node -v
npm -v
npm версия 3.5.2
npm install -g @angular/cli
Я установил Node с отображаемой версией как v8.10.0 , но когда я пытаюсь установить Angular / cli, появляется некоторая ошибка, как показано ниже
npm install -g @angular/cli
- |---------------------------------------------------------------------------|
WARN engine @angular/cli@9.0.2: wanted: {"node":">= 10.13.0","npm":">= 6.11.0","yarn":">= 1.13.0"} (current: {"node":"8.10.0","npm":"3.5.2"})
WARN engine @angular/cli@9.0.2: wanted: {"node":">= 10.13.0","npm":">= 6.11.0","loadDep:uuid -> get / |##########---------------------------------------|
WARN engine @angular-devkit/architect@0.900.2: wanted: {"node":">= 10.13.0","npmloadDep:uuid -> get - |##########---------------------------------------|
WARN engine @angular-devkit/core@9.0.2: wanted: {"node":">= 10.13.0","npm":">= 6.11.0","yarn":">= 1.13.0"} (current: {"node":"8.10.0","npm":"3.5.2"})
WARN engine @angular-devkit/schematics@9.0.2: wanted: {"node":">= 10.13.0","npm"loadDep:uuid -> get | |##########---------------------------------------|
WARN engine @schematics/angular@9.0.2: wanted: {"node":">= 10.13.0","npm":">= 6.loadDep:uuid -> network | |##########---------------------------------------|
WARN engine @schematics/update@0.900.2: wanted: {"node":">= 10.13.0","npm":">= 6npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/@angular/cli
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/@angular
/usr/local/lib
`-- @angular/cli@9.0.2
npm ERR! Linux 5.3.0-28-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "@angular/cli"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! path /usr/local/lib/node_modules/@angular/cli
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules/@angular/cli'
npm ERR! { Error: EACCES: permission denied, access '/usr/local/lib/node_modules/@angular/cli'
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/local/lib/node_modules/@angular/cli' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! /home/sagar/npm-debug.log
sagar@sagar-HP-Notebook:~$ ng -v
Node.js version v8.10.0 detected.
The Angular CLI requires a minimum Node.js version of either v10.13 or v12.0.
ng -v
Node.js version v8.10.0 detected.
The Angular CLI requires a minimum Node.js version of either v10.13 or v12.0.
Может кто-нибудь, пожалуйста, помогите мне избавиться от этой ошибки.