kblincoe / VisualGit_SE701_2019_4

1 stars 0 forks source link

npm run compile failed on master version #138

Closed Emap900 closed 5 years ago

Emap900 commented 5 years ago

I just start working on the project and when I try to compile & run the project cloned from the latest kelly's master version I am running into errors. (previously it was fine) So what I did so far is:

cloned the project npm install npm run compile

The compilation failed and reported missing a bunch of missing modules. I suppose there is an issue of pacakge.json, but please correct me if its just my local settings that went wrong on my Mac machine.

Thanks.

r4inee commented 5 years ago

Remember to remove node_modules before npm install whenever package.json is updated.

hybrio commented 5 years ago

on mac you need to run brew install libgcrypt before you npm install because libgcrypt doesn't npm install properly on mac. (it's a bug, nothing wrong with your local machine)

YichenTang97 commented 5 years ago

Maybe you can improve the Wiki page (or/and pull request a change on readme) once you have overcomed the problem

Emap900 commented 5 years ago

Thanks for all the comments, I figure out the reason that stopped me from even complete

npm install

is the update of nodegit from 0.13.2 to 0.22.2 ( which relates to the commit on #124 ) with error message

Failed at the nodegit@0.22.2 install script 'node lifecycleScripts/preinstall && node lifecycleScripts/install'.

Might be relates to nodegit issue https://github.com/nodegit/nodegit/issues/1536 here. As further update nodegit from 0.22.2 to 0.23.0-alpha.1 solves my problem of npm install.

bowenzheng98 commented 5 years ago

Also having this issue. I already have libgcrypt installed. Updating does not fix the issue for me however

WanniCode commented 5 years ago

also still having this issue (on Windows 10) - running npm install seems to work without errors but it does give warnings saying there are unmet peer dependencies for some packages.

running npm run compile yields the same issues (reporting missing modules).

r4inee commented 5 years ago

Close by #145