Closed h-polaris closed 1 year ago
It looks like you are using a mirror npm registry that doesn't support some features of NPM (auditing):
npm verb audit error HttpErrorGeneral: 501 Not Implemented - POST https://registry.npmmirror.com/-/npm/v1/security/audits/quick - [NOT_IMPLEMENTED] /-/npm/v1/security/audits/quick not implemented yet
This is probably configured in ~/.npmrc
.
Not sure if this error is critical or not because later you are also getting another error:
npm http fetch GET 200 https://cdn.npmmirror.com/packages/vscode-uri/3.0.7/vscode-uri-3.0.7.tgz 272ms (cache miss)
npm verb stack Error: EACCES: permission denied, mkdir '/Users/xxx/.npm/_cacache/content-v2/sha512/78/ea'
I don't know why would it fail to create the directory but there seems to be something wrong with your directory permissions. Maybe you are in a restricted environment (work laptop) where installing new packages is blocked?
If you want to, you can try to work around that by using LSP-specific node instance:
Preferences: LSP Utils Settings
from the Command Palette// Settings in here override those in "lsp_utils/lsp_utils.sublime-settings"
{
"nodejs_runtime": ["local"],
}
I still made an error after trying. How should I give him permission?
What is the new error?
The error is the same as before.
Can't be exactly the same since the paths would have to change at least with my suggested change. Please post the new error.
I solved this problem by giving .npm directory permissions.
I just opened a JSON file and encountered an error during the initialization process.
How can I solve it?