Comments (12)
please use markdown code block for logs in future.
Have you install dependencies via npm? npm install
??
from butter-desktop.
Hi, I had the same problem
When running npm install
got this error:
npm WARN package.json [email protected] No repository field.
npm WARN engine [email protected]: wanted: {"node":"0.6"} (current: {"node":"0.10.25","npm":"1.4.21"})
> [email protected] install /home/caramelomartins/Projects/butter/node_modules/chromecast-js/node_modules/node-ssdp/node_modules/bunyan/node_modules/dtrace-provider
> node scripts/install.js
\
> [email protected] postinstall /home/caramelomartins/Projects/butter
> bower install --config.interactive=false && grunt setup
Error: EACCES, permission denied '/home/caramelomartins/.config/configstore/bower-github.yml'
You don't have access to this file.
at Object.fs.openSync (evalmachine.<anonymous>:432:18)
at Object.fs.readFileSync (evalmachine.<anonymous>:286:15)
at Object.create.all.get (/home/caramelomartins/Projects/butter/node_modules/bower/node_modules/configstore/index.js:34:29)
at Object.Configstore (/home/caramelomartins/Projects/butter/node_modules/bower/node_modules/configstore/index.js:27:44)
at readCachedConfig (/home/caramelomartins/Projects/butter/node_modules/bower/lib/config.js:22:23)
at defaultConfig (/home/caramelomartins/Projects/butter/node_modules/bower/lib/config.js:11:24)
at Object.<anonymous> (/home/caramelomartins/Projects/butter/node_modules/bower/lib/index.js:40:32)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
npm ERR! [email protected] postinstall: `bower install --config.interactive=false && grunt setup`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is most likely a problem with the Butter package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! bower install --config.interactive=false && grunt setup
npm ERR! You can get their info via:
npm ERR! npm owner ls Butter
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.19.0-31-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/caramelomartins/Projects/butter
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/caramelomartins/Projects/butter/npm-debug.log
npm ERR! not ok code 0
This was the one command that was causing the error for me:
bower install --config.interactive=false
Solved it by running the commands:
sudo apt-get install nodejs-legacy
And wrapping all commands inside sudo [command] --allow-root
:
sudo npm install -g grunt-cli --allow-root
sudo npm install --allow-root
sudo grunt build --allow-root
sudo grunt start --allow-root
Result of sudo grunt build --allow-root
:
(...)
Done, without errors.
I am not sure if the first command is actually necessary but I had to run all of those to make it work.
The ./make_butter.sh
script wasn't working for me also.
Sources:
http://stackoverflow.com/questions/21168141/can-not-install-packages-using-node-package-manager-in-ubuntu
http://stackoverflow.com/questions/29865913/getting-a-permission-error-when-installing-with-bower
from butter-desktop.
@caramelomartins As logs clearly said you have permission denied
on '/home/caramelomartins/.config/configstore/bower-github.yml' You don't have access to this file.
Rather than run it with sudo change owner of these with chown
.
in your case:
$ sudo rm -rf node_modules bower_components
$ sudo chown [username] -R .
$ npm install
for anyone new after git clone
:
$ sudo chown [username] -R .
$ npm install
EDITED
--allow-root
flag is not much safe thing. With script build anyone take root access of your machine.
from butter-desktop.
Thanks @turboMaCk!
I tried it again without the sudo [command] --allow-root
and it still produced the error. I then run your suggested commands and it worked like a charm!
Worked for me! Again, many thanks!
from butter-desktop.
You're welcome.
Some explanation:
sudo
stans for "superuser do"sudo npm install
will install dependencies but it also makesroot
the owner of all modules. They you as a user has no permissions to change that files
I do not know why you have permission issue after git clone
but maybe you also run it with sudo what case this`
from butter-desktop.
Makes sense, when I tried to access the directory with a simple cd
command I was given the same error...I can only assume I must have installed it with sudo
from the start.
Once again, thanks!
from butter-desktop.
Yes, npm install
does not show errors but grunt build
remains not working.
$> npm install
npm WARN engine [email protected]: wanted: {"node":"0.6"} (current: {"node":"0.12.7","npm":"2.12.1"})
> [email protected] install /Users/farleylai/Documents/dev/git/butter/node_modules/chromecast-js/node_modules/node-ssdp/node_modules/bunyan/node_modules/dtrace-provider
> node scripts/install.js
---------------
Building dtrace-provider failed with exit code 1 and signal 0
re-run install with environment variable V set to see the build output
---------------
> [email protected] postinstall /Users/farleylai/Documents/dev/git/butter
> bower install --config.interactive=false && grunt setup
Running "githooks:all" (githooks) task
Binding `jsbeautifier:default jsbeautifier:verify jshint` to `pre-commit` Git hook.
OK
Done, without errors.
[email protected] node_modules/peerflix
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
[email protected] node_modules/airplay-js
├── [email protected] ([email protected], [email protected])
└── [email protected] ([email protected], [email protected])
[email protected] node_modules/nodecast-js
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected])
[email protected] node_modules/chromecast-js
├── [email protected] ([email protected])
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected])
from butter-desktop.
Looks like Windows related issue. I'm on beer with friends so I'm not 100 perxent sure now if this is available in grunt but pls try grunt build -v
and post log in here. Thx.
from butter-desktop.
Oh sorry. I mistunderstand this log. Pls try:
$ rm -rf node_modules bower_components
$ npm -g update
from butter-desktop.
npm install
of course
from butter-desktop.
I finally succeeded building and starting the app. There are some minor error messages but the build works. This is probably a WiFi connection problem on OSX 10.11 which makes it arbitrarily slow or unable to connect some websites such that the build cannot download from nwjs.io. After reboot, everything goes as expected though the content is minimal. Looking forward to further development.
grunt build
Running "injectgit" task
Running "bower_clean" task
Running "shell:themes" (shell) task
Running "clean:css" (clean) task
>> 21 paths cleaned.
Running "stylus:official" (stylus) task
>> 5 files created.
Running "stylus:third_party" (stylus) task
>> 14 files created.
Running "nwjs:src" (nwjs) task
Using v0.12.3
Create cache folder in /Users/farleylai/Documents/dev/git/butter/cache/0.12.3
Downloading: http://dl.nwjs.io/v0.12.3/nwjs-v0.12.3-osx-ia32.zip
Create cache folder in /Users/farleylai/Documents/dev/git/butter/cache/0.12.3
Downloading: http://dl.nwjs.io/v0.12.3/nwjs-v0.12.3-osx-x64.zip
downloading [====================] 100% 0.0s
Create release folder in /Users/farleylai/Documents/dev/git/butter/build/Butter/osx32
Create release folder in /Users/farleylai/Documents/dev/git/butter/build/Butter/osx64
chmod 33188 on /Users/farleylai/Documents/dev/git/butter/build/Butter/osx32/Butter.app/Contents/Resources/nw.icns failed after copying, ignoring
chmod 33188 on /Users/farleylai/Documents/dev/git/butter/build/Butter/osx64/Butter.app/Contents/Resources/nw.icns failed after copying, ignoring
>> NW.js app created.
Running "shell:setexecutable" (shell) task
chmod: build/releases/Butter/mac/Butter.app: No such file or directory
chmod: build/releases/Butter/linux*/Butter/Butter: No such file or directory
Done, without errors.
from butter-desktop.
Seeing this as now resolved closing the issue
from butter-desktop.
Related Issues (20)
- Collaboration with Nuclear HOT 1
- Black screen HOT 2
- Doesn't run on Linux using flatpak
- Doesn't run on Linux using flatpak HOT 1
- Not connecting and downloading
- Bug: Thumbnails not loading. HOT 1
- [Feature Request] In App Torrent Search Using Jackett API
- Contribute guide is missing
- Using Yarn to build failed
- two device can not be sync
- unable to run yarn build & start HOT 1
- Add appimage support HOT 3
- Enable startup notifications
- Database directory field uneditable
- Unmaintained ?
- You're hosting on GitHub HOT 1
- "Watch Now"
- Bug: avengers infinity war subtitles in french are shifted HOT 1
- New Update is not working. Low quality 480P is not loading and following errors shwing as in screenshot HOT 3
- Bug:
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from butter-desktop.