Error: Cannot find package 'remark' #1333
-
I installed remark v3.0.0 VS code extension, however it prompts an following error. The lib/node_modules path does not exist. Do anyone have an idea how to fix it?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Welcome @gnought! 👋 Make sure the project folder you are opening has remark-cli and the plugins you want installed in a package.json file.
Source: project readme: https://github.com/remarkjs/vscode-remark?tab=readme-ov-file#what-is-this |
Beta Was this translation helpful? Give feedback.
Ideally you should have
remark
installed per project.remark-cli
installs this as a transitive dependency. This ensures the sameremark
version is used both by the VSCode extension and when runningremark
on the command line.However, if
remark
isn’t found, the VSCode extension falls back to a bundled version ofremark
. For me it runs fine regardless whether or notremark
is installed in the project, so I’m surprised you’re seeing this error.