-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Failed to resolve global node_modules path #331
Comments
To confirm, you are using Stylelint installed globally using pnpm? This error means that pnpm is not accessible in the environment in which the extension is running, which normally means there's an issue in your setup. Most likely I would guess that this is due to pnpm not being in the For now, I'm closing this since it seems to be an issue with the environment as opposed to a bug with the extension. |
Stylelint is installed locally. I will take a look at the PATH. It might be because pnpm is installed in my Library folder (their new install instructions recommend that) but I really though all apps are aware of those binaries: ~/Library/pnpm/pnpm |
Let me know if you run into any hurdles and I'd be happy to help investigate. |
It seems to be fixed... bit itself. Maybe it was the restart or Node update. Thanks, anyway :D sometimes things are weird |
Glad it's working for you! Feel free to open an issue if you ever run into any other trouble. |
I am getting this error as well with just npm on Mac OS. I am using node via nvm. This plugin looks broken.
|
How did you encounter this bug?
Saving a file with auto formatting enabled
Code Snippet
Extension Configuration
Actual Behaviour
Shows an error but it seems to work
Expected Behaviour
Find the path?
Logs
[Warn - 1:59:32 PM] [language-server] Failed to resolve global node_modules path. | packageManager: "pnpm" error: {"errno":-2,"code":"ENOENT","syscall":"spawn pnpm","path":"pnpm","spawnargs":["root","-g"],"name":"Error","message":"spawn pnpm ENOENT","stack":"Error: spawn pnpm ENOENT\n at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)\n at onErrorNT (internal/child_process.js:465:16)\n at processTicksAndRejections (internal/process/task_queues.js:80:21)"}
Stylelint Version
14.1.0
vscode-stylelint Version
1.1.0
Node.js Version
16
Operating System
macOS 12.0.1 (21A559)
Windows Subsystem for Linux
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: