Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install from source code ? #70

Closed
ghost opened this issue Jun 20, 2017 · 11 comments
Closed

How to install from source code ? #70

ghost opened this issue Jun 20, 2017 · 11 comments

Comments

@ghost
Copy link

ghost commented Jun 20, 2017

I wanted to install from source but I wasn't able to do it. I followed these instructions :

git clone https://github.com/oguzhaninan/Stacer.git

cd Stacer

npm install && npm run build && npm start

@oguzhaninan
Copy link
Owner

Hi,
What is the mistake you get.?

@liberodark
Copy link
Contributor

is correctly what is the worry ?

@ghost
Copy link
Author

ghost commented Jun 20, 2017

The error is :

gyp: binding.gyp not found (cwd: /home/user/Stacer/node_modules/fcopy-pre-bundled) while trying to load binding.gyp

@oguzhaninan
Copy link
Owner

What is your operating system and release ?

@ghost
Copy link
Author

ghost commented Jun 20, 2017

Linux Mint 18.1 with 4.10.0-22-generic kernel

@liberodark
Copy link
Contributor

For me wich commit 216 is the same is not work on manjaro or Solus or Ubuntu

@liberodark
Copy link
Contributor

I have done some wholesale testing it is a version problem for me

@psukys
Copy link

psukys commented Jun 23, 2017

Seems like a problem with electron-builder. Reference: electron-builder/issues/1651
Updating electron and electron-builder dependencies solves the problem

@sheepdestroyer
Copy link

sheepdestroyer commented Jul 4, 2017

same pb here with fedora 26

[sheepdestroyer@sheepora-X220 Stacer] $ npm install && npm run build && npm start

> fcopy-pre-bundled@0.1.2 install /home/sheepdestroyer/temp/Stacer/node_modules/electron-builder-util/node_modules/fcopy-pre-bundled
> node-gyp rebuild

gyp: binding.gyp not found (cwd: /home/sheepdestroyer/temp/Stacer/node_modules/electron-builder-util/node_modules/fcopy-pre-bundled) while trying to load binding.gyp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/lib/configure.js:305:16)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.11.8-300.fc26.x86_64
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/sheepdestroyer/temp/Stacer/node_modules/electron-builder-util/node_modules/fcopy-pre-bundled
gyp ERR! node -v v6.11.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
stacer@1.0.7 /home/sheepdestroyer/temp/Stacer
└── (empty)

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-mac@^1.0.1 (node_modules/7zip-bin/node_modules/7zip-bin-mac):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 7zip-bin-mac@1.0.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-win@^2.1.0 (node_modules/7zip-bin/node_modules/7zip-bin-win):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 7zip-bin-win@2.1.0: wanted {"os":"win32","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! Linux 4.11.8-300.fc26.x86_64
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v6.11.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! fcopy-pre-bundled@0.1.2 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the fcopy-pre-bundled@0.1.2 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the fcopy-pre-bundled package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs fcopy-pre-bundled
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls fcopy-pre-bundled
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/sheepdestroyer/temp/Stacer/npm-debug.log
npm ERR! code 1

@joeykrim
Copy link
Contributor

joeykrim commented Jul 23, 2017

On Ubuntu 16.04.2 - None of the above steps for npm resolved the issue.
The above comment #70 (comment) links to an issue Cannot install fcopy-pre-bundled in electron-builder, where there's a suggestion to swap npm for yarn, which resolved this issue on Ubuntu 16.04.2.
Steps:
Install yarn: https://yarnpkg.com/lang/en/docs/install/

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

Now, instead of the npm install && npm run build && npm start command, run yarn && npm start

@mnsekh111
Copy link
Contributor

@sheepdestroyer Updating node to version 8+ and adding build essential solved the issue for me.
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install -y build-essential

Also ty deleting node_modules/ and reinstalling again . For a few others restarting the maching solved the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants