npm install - git dep preparation failed

7,234 views
Skip to first unread message

Jason Lieu

unread,
Mar 2, 2021, 2:33:46 PM3/2/21
to TerriaJS
I have followed the Getting Started and Prerequisites instructions on the TerriaJS website.

When I run npm install within the TerriaMap directory to install the package.json with its dependencies and config, it fails with this error:

verbose stack Error: git dep preparation failed

npm ERR! code 1
npm ERR! git dep preparation failed

After reading the conversation in the TerriaJS Groups forum, I tried doing an npm install using the 'next' branch and changing the "terriajs": "8.0.0-alpha.65" in the package.json does not work either. I am still getting the same error. 

Please help!


Zoran Kokeza

unread,
Apr 11, 2021, 1:00:53 PM4/11/21
to TerriaJS
That is a pretty nasty issue thrown by npm. Can you post this on GitHub discussions with more output from the console? The real cause of the error is probably hidden in later output (peer dependency, g++). As a workaround, I can suggest trying to install using yarn and see what it will say.

David Hine

unread,
Apr 11, 2021, 8:24:58 PM4/11/21
to terr...@googlegroups.com

Hi Jason

Care needs to be taken about the version you are using of node. I got build failures when trying the most recent version of node.

Try:

node -v

I moved back to version 12.18.0 in order to build without error.

I also made notes on downgrading node and then deleting the latest version and specifying 12.18 as the default. I could post them if that's useful.

David

--
You received this message because you are subscribed to the Google Groups "TerriaJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terriajs+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terriajs/fd225543-522a-4ef7-9a47-8158796617can%40googlegroups.com.
--
Land and Water Management logo

David Hine
Land and Water Management PL
Level 27, 480 Queen St
Brisbane, Qld 4000
Australia

m: 0429 886 146 +61 429 886 146
t: (07) 4015 3470 +61 7 4015 3470

GeoPortal with example presentations of spatial data for horticulture users and others.
Land and Water Management PL

Visit our soil health blog


Reply all
Reply to author
Forward
0 new messages