How to fix typescript installation error in ubuntu | Typescript installation error in vs code Ubuntu

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024
  • How to fix typescript installation error in ubuntu | Typescript installation error in vs code Ubuntu
    $ npm i -g typescript
    When you install typescript in ubuntu by using the above command, you get the following error.
    npm ERR! code EACCES
    npm ERR! syscall rename
    npm ERR! path /usr/lib/node_modules/typescript
    npm ERR! dest /usr/lib/node_modules/.typescript-EvmuI7iJ
    npm ERR! errno -13
    npm ERR! Error: EACCES: permission denied, rename '/usr/lib/node_modules/typescript' -'/usr/lib/node_modules/.typescript-EvmuI7iJ'
    npm ERR! [Error: EACCES: permission denied, rename '/usr/lib/node_modules/typescript' -'/usr/lib/node_modules/.typescript-EvmuI7iJ'] {
    npm ERR! errno: -13,
    npm ERR! code: 'EACCES',
    npm ERR! syscall: 'rename',
    npm ERR! path: '/usr/lib/node_modules/typescript',
    npm ERR! dest: '/usr/lib/node_modules/.typescript-EvmuI7iJ'
    npm ERR! }
    npm ERR!
    npm ERR! The operation was rejected by your operating system.
    npm ERR! It is likely you do not have the permissions to access this file as the current user
    npm ERR!
    npm ERR! If you believe this might be a permissions issue, please double-check the
    npm ERR! permissions of the file and its containing directories, or try running
    npm ERR! the command again as root/Administrator.
    npm ERR! A complete log of this run can be found in: /home/user/.npm/_logs/2024-05-06T16_16_58_694Z-debug-0.log
    This is the error we are going to fix in this video.
    #typescript #ubuntu #webdevelopment #vscode

Комментарии •