gyp verb build dir attempting to create “build” dir:

Error installing component via npm.

View error:

gyp verb build dir attempting to create “build” dir:
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir
gyp ERR! System Darwin 19.3.0
gyp ERR! command “/ usr / local / bin / node

I got it when the team

npm i -D svelte-preprocess autoprefixer node-sass

But in this case, it is not important which team led to the error. It can be any other.

The bottom line is the inability to create a folder due to some rights.


Option 1

Manually create the folder that the script wants to create.

Option 2

If you use the first solution, then each time you have to create in such cases. You can correct the rights, but sometimes it is not obvious which rights are needed for this particular situation.

Therefore, we delete everything and install it all over again in a new place.

npm init
npm install –save-dev svelte-preprocess-sass node-sass

This is usually enough to solve the problem.

If not, then deal with the rights.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *