M
M
Muhammadkhon Abdullaev2020-10-18 12:05:03
Node.js
Muhammadkhon Abdullaev, 2020-10-18 12:05:03

How to give permission to execute scripts in Ubuntu?

Hello. I have a problem installing verdaccio. Some errors are displayed. Friends suggested that you need to give permission to execute scripts. On Windows, the get-executionpolicy command helped. But it doesn't work on Ubuntu, of course. Help how to solve the problem.
PS Just in case, I'll leave a screenshot of the error.

5f8c050278080181177712.png

I will be grateful for your help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Valdemar Smorman, 2020-10-18
@smorman

Apparently you have to do it with sudo.
Those. sudo npm install --global verdaccio
Fix your permissions so that you never...

R
res2001, 2020-10-18
@res2001

Standard nix permission to execute: sudo chmod +x <имя файла скрипта>
In this case, the first line in the script should be something like: #!/bin/bash
The options may be different, depending on the PL on which the script is written, the first 2 characters are required.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question