furier / websync

websync is intended to be an rsync manager, where rsync tasks can be added, scheduled and maintained in a sane manner.
http://furier.github.io/websync/
MIT License
484 stars 91 forks source link

Can't install websync TypeError: Cannot read property 'base' of null #12

Closed mourningsun75 closed 10 years ago

mourningsun75 commented 10 years ago

Hi,

i have tried to install websync on my old debian server. First of all i have to install many packages like:

sudo npm install -g bower
sudo npm install --global gulp
sudo npm install isarray
sudo npm install core-util-is
sudo npm install inherits
sudo npm install xtend
sudo npm install jshint
sudo npm install map-key

Now if i try to build with gulp build i got the following error:

/opt/websync/node_modules/gulp-concat-css/index.js:55
      base: firstFile.base,
                     ^
TypeError: Cannot read property 'base' of null
    at Transform._flush (/opt/websync/node_modules/gulp-concat-css/index.js:55:22)
    at Transform.<anonymous> (/opt/websync/node_modules/gulp-concat-css/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:135:12)
    at Transform.g (events.js:180:16)
    at Transform.emit (events.js:117:20)
    at finishMaybe (/opt/websync/node_modules/gulp-concat-css/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:371:12)
    at endWritable (/opt/websync/node_modules/gulp-concat-css/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:378:3)
    at Transform.Writable.end (/opt/websync/node_modules/gulp-concat-css/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:356:5)
    at Transform.onend (/opt/websync/node_modules/gulp-changed/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:523:10)
    at Transform.g (events.js:180:16)
    at Transform.emit (events.js:117:20)

Is there some dependency missing?

furier commented 10 years ago

Have you tried the installation instructions here? https://github.com/furier/websync/wiki/Installation---Ubuntu You shouldn't need to install packages manually separately...

Checkout the master branch and follow the installation instructions, get back to me if you have any further problems.

PS: its also not good practice to use sudo with NPM, shouldn't be needed....

mourningsun75 commented 10 years ago

I have followed the instructions. I use debian stable so i had to install node.js manually. bower, gulp and the other components was not found so i have to install them manually to.

bower install and npm install worked fine without errors.

only the gulp install brings the error

furier commented 10 years ago

gulp install or gulp dist ? Sometimes you need to run the gulp command more then once as it fails the build, im working on solving the issue. Does that help?

mourningsun75 commented 10 years ago

gulp build -> breaks every time gulp install -> Task 'install' is not in your gulpfile gulp dist -> same error as gulp build

mourningsun75 commented 10 years ago

perhaps it helps hte first lines of output before the error:

[11:04:29] Using gulpfile /opt/websync/gulpfile.js
[11:04:29] Starting 'clean'...
[11:04:29] Finished 'clean' after 6.84 ms
[11:04:29] Starting 'dist'...
[11:04:29] Starting 'copy-server-to-dist'...
[11:04:29] Finished 'copy-server-to-dist' after 5.57 ms
[11:04:29] Starting 'watchify'...
[11:04:30] Starting 'html'...
[11:04:30] Finished 'html' after 2 ms
[11:04:30] Starting 'css'...
[11:04:30] Finished 'css' after 7.31 ms
[11:04:30] Starting 'fonts'...
[11:04:30] Finished 'fonts' after 1.17 ms
[11:04:30] Starting 'imagemin'...
[11:04:30] Finished 'imagemin' after 3.03 ms
[11:04:30] Starting 'bower'...
[11:04:30] Finished 'bower' after 851 μs
[11:04:30] Finished 'dist' after 379 ms
furier commented 10 years ago

This seems very strange to me as the only task using the module gulp-concat-css is the css task which according to your log ran just fine. :S

mourningsun75 commented 10 years ago

i will try it on another server

furier commented 10 years ago

Did you get it to work?

mourningsun75 commented 10 years ago

no, i made it now on a raspberry pi with a newer debian. same error

furier commented 10 years ago

Im away for the weekend, but when I get home again I will set up a debian vm where I will test websync to confirm that here is a bug I need to fix.

furier commented 10 years ago

@mourningsun75 what version of debian have you tested?

mourningsun75 commented 10 years ago

debian 6 and raspian

Darlelet commented 10 years ago

Same here, but on Debian 7

furier commented 10 years ago

Im having trouble with my hypervisor, when its up and running again I will try and solve this bug.

Darlelet commented 10 years ago

Ok, what are you using?

furier commented 10 years ago

SmartOS as Hypervisor

Darlelet commented 10 years ago

Nice :)

Darlelet commented 10 years ago

You got some news? :)

furier commented 10 years ago

Iv got my VM up and running, I was compiling node from source before I went to bed yesterday, Im still at work and will take a look at it tonight.

Darlelet commented 10 years ago

Okay

furier commented 10 years ago

I successfully installed websync's master branch with the current installation description on a clean debian-6 vm.

Here are the steps I made:

# as Root

## get git
apt-get install git-core
cd /home/<username>

## clone node git repo
git clone https://github.com/joyent/node.git
cd node

## checkout latest stable version
git checkout v0.10.31

## install node
make
make test
make install

## Check node is installed correctly
node -v
npm -v

## Install global packages
npm install -g bower
npm install -g gulp

exit

# as <username>

## get websync
cd ~
git clone https://github.com/furier/websync.git
cd websync
npm install
bower install

## build websync
gulp dist

## run websync
cd dist
node server.js

Now websync was up an running for me @ http://localhost:3000

Darlelet commented 10 years ago

I'll try this on Debian 7, let me few minutes ;)

Darlelet commented 10 years ago

Ok, nice job! It works fine! :)

furier commented 10 years ago

Thank you, good to know it all worked out. :)

Darlelet commented 10 years ago

:) Just one thing: you need to run "npm install -g bower and npm install -g gulp" as root: didn't work for me as random user.

albertovincenzi commented 9 years ago

Same problem in Ubuntu 12.04... I've tried everything but is not working... The error is the same as reported.

codedmind commented 9 years ago

Ubuntu server 14.04 same error

after do npm install i get that error

websync@1.0.4 build-dist /home/adminlocal/websync gulp dist

[17:25:01] Using gulpfile ~/websync/gulpfile.js [17:25:01] Starting 'clean'... [17:25:01] Finished 'clean' after 13 ms [17:25:01] Starting 'copy-server-to-dist'... [17:25:01] Finished 'copy-server-to-dist' after 7.09 ms [17:25:01] Starting 'browserify'... [17:25:01] Finished 'browserify' after 6.5 ms [17:25:01] Starting 'html'... [17:25:01] Finished 'html' after 2.62 ms [17:25:01] Starting 'scss'... [17:25:01] Finished 'scss' after 4.67 ms [17:25:01] Starting 'css'... [17:25:01] Finished 'css' after 7.45 ms [17:25:01] Starting 'fonts'... [17:25:01] Finished 'fonts' after 1.12 ms [17:25:01] Starting 'imagemin'... [17:25:01] Finished 'imagemin' after 3.34 ms [17:25:01] Starting 'bower'... [17:25:01] Finished 'bower' after 843 μs [17:25:01] Starting 'build'... [17:25:01] Finished 'build' after 2.64 ms [17:25:01] Starting 'build-prod'... [17:25:01] Finished 'build-prod' after 4.86 μs [17:25:01] Starting 'dist'... [17:25:01] Finished 'dist' after 4.39 μs /home/adminlocal/websync/node_modules/gulp-concat-css/index.js:55 base: firstFile.base, ^ TypeError: Cannot read property 'base' of null at Transform._flush (/home/adminlocal/websync/node_modules/gulp-concat-css/index.js:55:22) at Transform. (/home/adminlocal/websync/node_modules/gulp-concat-css/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:135:12)

npm ERR! node v0.12.7 npm ERR! npm v2.11.3 npm ERR! code ELIFECYCLE

peterrus commented 9 years ago

same

npm ERR! node v0.12.7 npm ERR! npm v2.11.3

ubuntu 14.04

mhoskiso commented 8 years ago

I ran into this problem on 14.04 as well, turns out the alertify css file changed names. #34

After updating the css name, I deleted the dist folder and re-ran gulp dist

furier commented 8 years ago

Merged pull request #34, didn't have time to verify the PR so please speak up if it messed up things for other users not having this issue...

sparklyballs commented 8 years ago

i built succesfully from the latest PR like this

cd /app/websync npm install bower install gulp dist || true rm -rf /app/websync/dist gulp dist

sparklyballs commented 8 years ago

in this dockerfile

https://github.com/linuxserver/docker-websync/blob/master/Dockerfile