Giter Site home page Giter Site logo

Comments (7)

kurko avatar kurko commented on May 18, 2024

The package.json has specifies that bower install should be run after npm install. That doesn't make sense.

In your case, you can either install bower locally or just send a PR to modify the package.json file and remove this bower command. I'll try doing that myself when I get home. If you have some time, a patch is welcome :)

from ember-sync.

tute avatar tute commented on May 18, 2024

Which package.json? Happy to help, but I'll need a little more guidance. Thanks for your quick response!

from ember-sync.

kurko avatar kurko commented on May 18, 2024

This line: https://github.com/kurko/ember-sync/blob/master/package.json#L18 Whenever you run npm install ember-sync, it'll run bower install. If you send a patch removing that line, it should be fixed.

I'll only have time to look into it myself tomorrow evening.

from ember-sync.

jakecraige avatar jakecraige commented on May 18, 2024

closed from that PR and when npm gets updated

from ember-sync.

john-kurkowski avatar john-kurkowski commented on May 18, 2024

The package.json has specifies that bower install should be run after npm install. That doesn't make sense.

@kurko, this is unrelated to the PR, but I arrived here from a Google search for the exact error message in another NPM package. For posterity, why doesn't it make sense?

from ember-sync.

jakecraige avatar jakecraige commented on May 18, 2024

@john-kurkowski The error message is simply saying the bower is not installed globally on your machine. You need to install it with npm install -g bower and the error should go away.

from ember-sync.

john-kurkowski avatar john-kurkowski commented on May 18, 2024

My case is the same as the original issue's:

./node_modules/bower/bin/bower: No such file or directory

Some other package is actually looking for bundled Bower, not global.

Regardless I'm not curious about how to fix the error. I'm curious why @kurko thought the npm install + bower install sequence doesn't make sense as a postinstall hook. It's the sequence ember-cli Getting Started requires, for example. Albeit they don't mention postinstall.

from ember-sync.

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.