Many people have struggled with this issue. Some worked around it with a manual npm install in the extension folder, while others couldn't. https://github.com/decentraland/editor-sdk7/issues/111 might relate to this.
Some of their representations are: sdk-commands not found, not being able to copy cache, npm install failed
I've seen there is already a node environment in most of the cases (i can't say 100% because I'm not sure)
A repro case for Windows
Remove all the node environments in your machine (uninstall nvm-windows - if you have - , node)
Install node with nvm install lts and nvm use 20.15.0 (at the time this issue is written)
Clean Decentraland vscode extension
Open only one window of VSCode and without opening a folder and install the Decentraland SDK7 Extension version 1.53.1 (latest at the time this is written)
Click on the extension icon in the VSCode's left-bar to activate the extension and open the output > Decentraland SDK7
Intro
Many people have struggled with this issue. Some worked around it with a manual
npm install
in the extension folder, while others couldn't. https://github.com/decentraland/editor-sdk7/issues/111 might relate to this. Some of their representations are:sdk-commands not found
,not being able to copy cache
,npm install failed
I've seen there is already anode
environment in most of the cases (i can't say 100% because I'm not sure)A repro case for Windows
nvm install lts
andnvm use 20.15.0
(at the time this issue is written)In this case, the issue is working around it with an early return in the
cacheDependencies
method (with hacky modifying the dist/editor.js file) here https://github.com/decentraland/editor-sdk7/blob/52ffce674a3d01f9bc5ea0870df313ec250bfff1/src/modules/npm.ts#L113