Q
Q
Quintis2021-02-24 13:03:31
linux
Quintis, 2021-02-24 13:03:31

Error when sudo npm install?

60362341494ca421569525.png
6036234d1cfba725258351.png
6036236264ea6749016107.png

Hello, installed fedora and node but can't install node_modules to work with gutenberg plugin - https://github.com/WordPress/gutenberg
npm 6.14.11
node 14.16.0
package.json says npm < 7 version should be
Is there anyone who works with gutenberg on fedora? help me please

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2021-02-24
@zeond

The screenshots show that you are doing sudo git clone and thereby cloning the repository from under the root. And then try to do npm install without root rights to build the project. You need to decide from which user you will build the project. If not as root, then don't use sudo.

cd ~
git clone ...
npm install

but here in the Gutenberg documentation it is written that to use the plugin, it is enough to install it from the official turnip:
To use the latest release of the Gutenberg plugin on your WordPress site: install from the plugins page in wp-admin, or download from the WordPress.org plugins repository.

S
Swartalf, 2017-11-06
@Swartalf

what do you expect from the trigger? I do not see the actions that it should perform other than sorting through some data.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question