Atharva Joshi
Atharva Joshi

Reputation: 11

Running spago build returns error installing dependencies

I just started with purescript. Running spago build always return an error which says -

Failed to install dependency "effect"
Git output:
fatal: destination path '.' already exists and is not an empty directory.
Aborting installation
[error] Installation failed
[error] Error:
[error] ExitFailure 1

Any clue as to where I'm going wrong? https://i.sstatic.net/w4XKv.png

Upvotes: 1

Views: 623

Answers (3)

Shivacharan Kosari
Shivacharan Kosari

Reputation: 1

Hey guys got the solution, try

npm install -g spago@next

this line solved my error and iam able to run and build now

Upvotes: -1

Aniket Kumar
Aniket Kumar

Reputation: 31

If you just installed purescript compiler or the spago package manager globally using:

npm install -g purescript
npm install -g spago

Then, Please close your terminal / IDE / Editor completely and then reopen. Everything should work then.

PS: On VSCode, restarting via Reload Windows does not do the trick. Close and restart.

Upvotes: 0

Ryan Riegel
Ryan Riegel

Reputation: 1

I just faced and solved this problem in Windows 11. The root cause of my problem was attempting to run spago inside a directory managed by Dropbox.

My solution was to move my build directory to somewhere not managed by Dropbox, but this is not ideal because I would like my work to be automatically backed up and shared between devices.

I'd be interested to hear if anyone has better solutions using spago (and git) and Dropbox together on Windows 11. Ideally, there should be some way to make git less sensitive to whatever hidden files Dropbox is sticking in folders.

Upvotes: 0

Related Questions