Join the Webstudio community

Updated 4 months ago

Error Running pnpm dev on VSCode with Docker

At a glance

A community member encountered an error while running pnpm dev in VSCode with Docker, indicating missing node_modules. They attempted to resolve it by trying pnpm install node_modules -w, which was an improvised solution that didn't work. The error suggested that node_modules was missing and needed to be installed.

While there were references to documentation in the webstudio-community GitHub repository for contributing developers, the issue persisted even when following the VSCode-specific instructions. Another community member reported having the same issue, but after two hours of attempting both VSCode and non-VSCode methods, they were unable to resolve the problem and gave up.

No solution was found, and the community member with VSCode expertise was unavailable at the time.

Useful resources
Hi all, I get an error while running pnpm dev on VSCode (selfhosting with docker). The error is:

node ➜ /workspaces/webstudio $ pnpm dev

webstudio-root@0.0.0 dev /workspaces/webstudio
pnpm --filter='@webstudio-is/builder' dev


@webstudio-is/builder@0.0.0 dev /workspaces/webstudio/apps/builder
remix vite:dev

sh: 1: remix: not found
/workspaces/webstudio/apps/builder:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @webstudio-is/builder@0.0.0 dev: remix vite:dev
spawn ENOENT
 WARN  Local package.json exists, but node_modules missing, did you mean to install?
 ELIFECYCLE  Command failed with exit code 1.
B
d
T
17 comments
 WARN  Local package.json exists, but node_modules missing, did you mean to install?
I tried to install that with

pnpm install node_modules -w

but it failed
Where did you find this command?
I invented it lol
I do not know how to install those node_modules
The error I got is

 ERR_PNPM_ADDING_TO_ROOT  Running this command will add the dependency to the workspace root, which might not be what you want - if you really meant it, make it explicit by running this command again with the -w flag (or --workspace-root). If you don't want to see this warning anymore, you may set the ignore-workspace-root-check setting to true.
node ➜ /workspaces/webstudio $ pnpm install node_modules -w

(I then ran with -w) 

ERR_PNPM_SPEC_NOT_SUPPORTED_BY_ANY_RESOLVER  node_modules isn't supported by any available resolver.
Whole instruction in the link above
Sure, I am looking at those
I am at the final stages, running vscode+docker. I type pnpm dev as stated in instructions and the error I posted appears
This is clearly skipped
Attachment
image.png
I have no idea then, I use vim 🙂
VSCode guy is away today
ok I will try the next steps without VScode, let's see
Hi @digizone
I have the same issue. Did you fix this problem? If you did, please help me.
No, I'm sorry. I tried for 2 hours trying the method with vscode and also without vscode but I kept getting errors and gave up.
Add a reply
Sign up and join the conversation on Discord