nicholas-ochoa/OpenSC2K

electron-rebuild: The system cannot find the path specified. (Windows)

jonathanlinat opened this issue ยท 4 comments

I did exactly what it's described here:

  1. git clone https://github.com/rage8885/OpenSC2K or download this repository
  2. cd OpenSC2K
  3. Windows: npm install --global --production windows-build-tools (as admin) installs Windows specific prerequisites
  4. npm install downloads and installs the dependancies
  5. Windows/Linux: node_modules/.bin/electron-rebuild -f -w better-sqlite3 rebuilds Electron with better-sqlite3 bindings
  6. npm start to run

But when I execute /node_modules/.bin/electron-rebuild -f -w better-sqlite3 on Windows 10 into a non-admin cmd (cmder), I have this result: The system cannot find the path specified..

image

You're in the wrong directory.

cd C:\Users\jonathan.linat\GitHub\OpenSC2K
node_modules/.bin/electron-rebuild -f -w better-sqlite3

image

My bad, I used forward slashes, change all to backslash because Windows.

node_modules\.bin\electron-rebuild -f -w better-sqlite3

image