Reputation: 11
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
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
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
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