Error: Cannot find module '../build/Debug/nodegit.node'
Closed this issue · 1 comments
I cloned the repo, installed modules via yarn
and npm i
(after having to install openssl-dev and libssh2 via Homebrew on macOS) I got all the dependencies to install.
Now, I cannot get the build script npm start
to run. I want to build the whole website (specifically get the table of properties page to build) as I want to attempt to contribute to the docs.
When I run npm start
, I am getting the error Error: Cannot find module '../build/Debug/nodegit.node'
. I installed nodegit
via yarn add nodegit
and npm install nodegit
with no difference.
Any ideas to get the site to build?
This issue has been fixed. I have successfully built the site on my machine.
In the Tachyons Slack group, I was suggested to delete my node_modules/
dir and try npm install
again. This did not solve the complete issue, but helped move past this immediate issue.
These are the steps that I took to get the site to compile:
- Install libssh2 via homebrew on my machine (crypto lib was required to finish
npm install
for a dependency) npm install
. Failed. Got the issue this issue was created for.rm -rf node_modules
and thennpm install
again.sudo xcode-select --install
to fix issue with nodegit as defined in this issue.npm install
again after this is finished.- Electron failed and instructed me to delete electron from node_modules and try installing again. Ok.
rm -rf node_modules/electron
thennpm install
.
Done. Worked. Site compiles. Well...until I hit this issue