{"id":634,"hash":"feb982377aae8e0d4754b68ab4f901f5315bfbae0d27f67f564a90ce6619760c","pattern":"In VS Code, I&#39;m getting this error, &#39;Failed to load module. Attempted to load prettier from package.json&#39;","full_message":"When I'm using VS Code and open up a project,  I get this notification in the bottom right corner: \n\nFailed to load module. If you have prettier or plugins referenced in package.json, ensure you have runnpm installAttempted to load prettier from package.json.\n\nSource: Prettier Code Format (Extension)\n\nRunning npm install doesn't resolve this.  Anyone have any idea why that is or what I can do to fix it?","ecosystem":"npm","package_name":"visual-studio-code","package_version":null,"solution":"This is a solution that worked for me\n\n1. Install Prettier Globally via npm if you have never installed it globally \n\nnpm i prettier -g\n\n2. Search & Use the Prettier Path Extension Settings in your VS Code Settings \n\n// You can navigate to VS Code Settings > Extensions > Prettier for all Prettier Extension Settings\n\n3. Update the Prettier Path to your globally installed Prettier. \n\nFor Example\n\n/usr/local/lib/node_modules/prettier (Mac OS)\n\n\\AppData\\Roaming\\npm\\node_modules\\prettier (Windows)","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/58866847/in-vs-code-im-getting-this-error-failed-to-load-module-attempted-to-load-pr","votes":60,"created_at":"2026-04-19T04:51:25.708436+00:00","updated_at":"2026-04-19T04:51:25.708436+00:00"}