Git Product home page Git Product logo

Comments (4)

MoOx avatar MoOx commented on May 24, 2024

I just get a weird issue this morning
spawning grunt from a node js script with args below give me the Fatal error: Unable to find local grunt.

[ 'happyplan:dist',
  '--verbose',
  '--gruntfile',
  './node_modules/happyplan/Gruntfile.js',
  '--base',
  '/Users/MoOx/Sync/Development/putaindecode/website' ]

Just changing the order fix that.

[ '--gruntfile',
  './node_modules/happyplan/Gruntfile.js',
  '--base',
  '/Users/MoOx/Sync/Development/putaindecode/website',
  'happyplan:dist',
  '--verbose' ]

Is this a normal behavior ?

from grunt-cli.

Coridyn avatar Coridyn commented on May 24, 2024

This is an issue with how the nopt library parses these flag parameters.
It was fixed in v2.0.0 (July 2012) so it might be worth updating to a newer version of nopt to fix this.

Edit:
Interestingly, nopt needs to be updated in both the grunt-cli and grunt project, but it does seem to fix the problem.

Edit 2:
This is a known issue in Grunt: gruntjs/grunt#908
It's expected to be fixed in a future release (e.g. 0.5) because it's a breaking change for some people.

@unknpwn's workaround is probably the easiest way of handling this until it's fixed.

$ grunt migrate --dryrun=1 --rollback=1

from grunt-cli.

JeanFred avatar JeanFred commented on May 24, 2024

I can confirm that behaviour. Fingers crossed for a resolution in a future release!

from grunt-cli.

shama avatar shama commented on May 24, 2024

Fixed when nopt was updated (0928d68) and will get released soon. Thanks for your patience!

from grunt-cli.

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.