Giter Club home page Giter Club logo

Comments (12)

giorgiocaviglia avatar giorgiocaviglia commented on May 8, 2024

Did you install bower globally? It seems related to #29

from rawgraphs-app.

jriggs avatar jriggs commented on May 8, 2024

It's definitely the same issue as 29
Bower is installed globally - I just ran npm install again and I have the following warnings:

npm WARN package.json [email protected] No repository field.
npm WARN cannot run in wd [email protected] bower install (wd=/var/www/node/raw)

Sorry that I cant debug much more myself as I am in the process of learning the express/angular/node stack, but will provide any additional info that might be helpful.

-EDIT/UPDATE-

Found this command from someone who was having similar issues:

   npm -g install --unsafe-perm

got the following errors:

> [email protected] postinstall /usr/lib/node_modules/application-name
> bower install

bower ESUDO         Cannot be run with sudo

Additional error details:
Since bower is a user command, there is no need to execute it with superuser permissions.
If you're having permission errors when using bower without sudo, please spend a few minutes learning more about how your system should work and make any necessary repairs.

http://www.joyent.com/blog/installing-node-and-npm
https://gist.github.com/isaacs/579814

You can however run a command with sudo using --allow-root option
npm ERR! weird error 1
npm ERR! not ok code 0

Note I am running as root and not using 'sudo', also the --allow-root option doesnt seem to make any difference

from rawgraphs-app.

carver avatar carver commented on May 8, 2024

I tried following the workaround steps in #29 with no luck. On npm install, i'm getting npm WARN cannot run in wd [email protected] bower install (wd=/opt/raw)

Here are the installation steps I followed: (I'm running as root, the only user on the box)

git clone https://github.com/densitydesign/raw.git /opt/raw
npm install -g bower
cd /opt/raw
npm install -d
npm install
npm start

I'm really new to node, so sorry if I'm missing something obvious.

from rawgraphs-app.

jriggs avatar jriggs commented on May 8, 2024

think I found a workaround - su to something besides root and run npm update since I have an apache user on my box i just ran this

su www-data
cd /var/path/to/raw
npm update

from rawgraphs-app.

giorgiocaviglia avatar giorgiocaviglia commented on May 8, 2024

I will look into this. Meanwhile, have you tried to install bower globally using sudo npm install -g bower ?

from rawgraphs-app.

jptoor avatar jptoor commented on May 8, 2024

https://github.com/densitydesign/raw/issues/29#issuecomment-25534087

This resolved the issue for me.
Hope it helps.

from rawgraphs-app.

carver avatar carver commented on May 8, 2024

@giorgiocaviglia I ran the code in my earlier comment as root, then I tried running just bower as root, but the rest as a new user.

Still no .js/css files served.

from rawgraphs-app.

giorgiocaviglia avatar giorgiocaviglia commented on May 8, 2024

@carver can you paste here the output from your installation?

from rawgraphs-app.

carver avatar carver commented on May 8, 2024

@giorgiocaviglia

It looks like a number of dependencies changed in the head of the repo, so I updated to the latest. I had to fight with my docker container a bit to get things working, but I now have a working install, thanks!

I'll be posting the Dockerfile build instructions and pushing the prebuilt Docker image so that other people will be able to run their own install with just:

docker run -d carver/raw

Would you be interested in a README pull request or wiki entry with that info?

from rawgraphs-app.

giorgiocaviglia avatar giorgiocaviglia commented on May 8, 2024

@carver great! happy you solved this. if you would like to share Docker instructions here (as a response to this issue) I think it would be awesome, just to keep things together. thanks!

from rawgraphs-app.

carver avatar carver commented on May 8, 2024

I uploaded the prebuilt image to the docker index: https://index.docker.io/u/carver/raw/

You can download and run your own copy with: docker run -d carver/raw which will host on port 4000 just like the raw README.

Also, I posted the Dockerfile build script to https://github.com/carver/docker-raw . So people can build their own with:

git clone https://github.com/carver/docker-raw.git
docker build -t=raw docker-raw/Dockerfile
docker run -d raw

from rawgraphs-app.

giorgiocaviglia avatar giorgiocaviglia commented on May 8, 2024

@carver thanks!

from rawgraphs-app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.