Giter Site home page Giter Site logo

Comments (9)

jharding avatar jharding commented on July 20, 2024

What if you try node node_modules/.bin/component install?

from grunt-exec.

p0wl avatar p0wl commented on July 20, 2024

Different error message:

image

from grunt-exec.

johlrich avatar johlrich commented on July 20, 2024

If i execute the command in cmd (or powershell) it is working.

@p0wl Are you sure about that? I am seeing the same error on windows, but I can only execute the command by hand within powershell, it error's with the same message about . not being a command when using cmd.

Powershell cs Cmd doesn't matter when grunt-exec issues the command, they both error for me.

(Funny enough I also ran into this when building noflo-ui-server 😄)

from grunt-exec.

johlrich avatar johlrich commented on July 20, 2024

What ended up working on on both platforms was a slight variation of @jharding's suggestion node node_modules/component/bin/component install

from grunt-exec.

FlorianLoch avatar FlorianLoch commented on July 20, 2024

You should try using \ instead of / on Windows - then it is working for me. But this doesn't work on Unix - so I am doing a case differentiation which isn't a really nice solution...

from grunt-exec.

chesleybrown avatar chesleybrown commented on July 20, 2024

Prepending node command before node_modules/..... worked for me, thanks @johlrich!

from grunt-exec.

andrey-skl avatar andrey-skl commented on July 20, 2024

Also you can use path.resolve or path.relative

var path = require("path");

exec: {
            bowerinstaller: path.relative("", "node_modules/.bin/bower-installer")+" -r --silent"
        },

from grunt-exec.

mcandre avatar mcandre commented on July 20, 2024

Could grunt-exec automatically perform path.relative translation on the first whitespace-separated token in tasks? That way, Grunt "just works" on more operating systems.

from grunt-exec.

gwicksted avatar gwicksted commented on July 20, 2024

It could do this.. but then it would break in other situations (ie if "node" were specified before the path). grunt-exec has no way of knowing what is a path and what is an executable or argument. This is up to the user.

from grunt-exec.

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.