Npm build of plutus client fails with rename "permission denied"

I am trying to run the Plutus playground using the Gitbook recipe (
At step 15, the server starts fine, but trying to run the client with “npm run start” fails with the following

    [info] Copying from global cache: "tuples"
    [info] Copying from global cache: "web-html"
    [error] Installation failed
    [error] Error:
    [error] .spago/__download-catenable-lists-v5.0.1-1293619144260987/download: rename: permission denied (Permission denied)
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! plutus-playground-client@1.0.0 purs:compile: `spago build`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the plutus-playground-client@1.0.0 purs:compile script.

It seems that the npm script is trying to download something into a (read-only) nix store. How do I get the client to start?

I resolved this issue. The fix is to move the cloned repository from the wndows-hosted file system (under C:) to the WLS Ubuntu-hosted file system (\WLS$/mnt…/). For more details, see (npm build of plutus client fails with "permission denied" - Cardano Stack Exchange)

1 Like