Git Product home page Git Product logo

Comments (5)

briancavalier avatar briancavalier commented on September 26, 2024

Hey @StewartNoyce. Were there any errors from npm install? Or from the bower install? I just verified that it works for me on a fresh clone using the steps in the README, so maybe something weird happened in your particular case. Also, what OS and what version of npm & node?

from slides.

StewartNoyce avatar StewartNoyce commented on September 26, 2024

Thanks, it could very well be something in my environment. I just ran through the same exercise again on a different system as a quick test. The test system was a Mac Mini Intel Core 2 Duo running OS X 10.6.8 (Snow Leopard) with node v0.8.16 and npm v1.1.69. It gave me essentially the same result.

There were no errors in the npm or bower installs, just this warning:

npm WARN prefer global [email protected] should be installed with -g

Everything on this list shows up in the node_modules folder underneath bower. There is no bower_components folder, though.

[email protected] node_modules/bower
├── [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])

from slides.

briancavalier avatar briancavalier commented on September 26, 2024

It sounds like bower install may not be executing (It's supposed to be run as a part of npm install--see the prepublish task in package.json). Can you tell if it's being run or not? If it is being executed, then perhaps it is failing for some reason. If it's not, then that's certainly the problem, but I don't really know why it would be executed.

You could try running it manually to see if that gets things working for you. You can run the locally installed bower (from the slides dir):

./node_modules/.bin/bower install

Or, you can install bower globally yourself and run it:

npm install -g bower
bower install (again, from the slides dir)

I typically prefer using a local copy of bower (even though it wants to be installed globally, hence the warning during npm install). That allows for a bit more insulation against potential breaking changes in bower (they had a few before 1.0).

Let me know if you're able to get it working by manually running bower install.

from slides.

StewartNoyce avatar StewartNoyce commented on September 26, 2024

A local bower install solved the problem. I used this path from the /slides directory:

'node_modules/bower/bin/bower install'.

Thanks.

from slides.

briancavalier avatar briancavalier commented on September 26, 2024

Glad that got it working for you. It still seems very odd that bower install was not being run by npm install ... maybe the prepublish npm hook worked differently in previous versions of npm (I'm using 1.3.5).

I'll close this issue, since you have a workable solution, and if someone else reports a similar problem, I'll look into it more deeply. Thanks!

from slides.

Related Issues (7)

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.