Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/artsoldi/tech.camefrom.space/wp-includes/functions.php on line 6114
How to fix npm permission issues when using WSL - Tech from space

How to fix npm permission issues when using WSL

I had some startup problems when I installed Ubuntu as a subsystem. I could install node and npm, but not global npm packages. If you get errors like this:

npm WARN checkPermissions Missing write access to /usr/local/lib
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, symlink

Maybe this commands could help:

sudo mkdir /usr/local/lib/node_modules
sudo chown -R $USER /usr/local/lib/node_modules
sudo chown $USER /usr/local/bin/

Leave a Reply

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