diff --git a/content/packages-and-modules/getting-packages-from-the-registry/resolving-eacces-permissions-errors-when-installing-packages-globally.mdx b/content/packages-and-modules/getting-packages-from-the-registry/resolving-eacces-permissions-errors-when-installing-packages-globally.mdx index 42d294f37a2..790f628a2d6 100644 --- a/content/packages-and-modules/getting-packages-from-the-registry/resolving-eacces-permissions-errors-when-installing-packages-globally.mdx +++ b/content/packages-and-modules/getting-packages-from-the-registry/resolving-eacces-permissions-errors-when-installing-packages-globally.mdx @@ -31,7 +31,7 @@ To minimize the chance of permissions errors, you can configure npm to use a dif 2. On the command line, in your home directory, create a directory for global installations: ``` - mkdir ~/.npm-global + mkdir -p ~/.npm-global/lib ``` 3. Configure npm to use the new directory path: