Giter Site home page Giter Site logo

Comments (9)

emecell avatar emecell commented on June 12, 2024

If you've had node installed via homebrew for a while and just upgraded like I did, you may need to append /usr/local/share/npm/bin to your $PATH. brew info node tells you about this change.

from rendr-app-template.

scottrblock avatar scottrblock commented on June 12, 2024

/usr/local/share/npm/bin is in my $PATH (as brew info node told me to do), but I am still receiving the same error.

> [email protected] start /Users/sblock/projects/rendr-app-template
> DEBUG=app:* node index.js


/Users/sblock/projects/rendr-app-template/index.js:29
  if (err) throw err;
                 ^
Error: grunt exited with code:127
    at ChildProcess.compileAssets (/Users/sblock/projects/rendr-app-template/index.js:22:13)
    at ChildProcess.EventEmitter.emit (events.js:91:17)
    at Process._handle.onexit (child_process.js:674:10)
npm ERR! [email protected] start: `DEBUG=app:* node index.js`
npm ERR! `sh "-c" "DEBUG=app:* node index.js"` failed with 1
npm ERR! 
npm ERR! Failed at the [email protected] start script.
npm ERR! This is most likely a problem with the rendr-app-template package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     DEBUG=app:* node index.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls rendr-app-template
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 11.4.0
npm ERR! command "/usr/local/Cellar/node/0.8.8/bin/node" "/usr/local/bin/npm" "start"
npm ERR! cwd /Users/sblock/projects/rendr-app-template
npm ERR! node -v v0.8.8
npm ERR! npm -v 1.1.59
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/sblock/projects/rendr-app-template/npm-debug.log
npm ERR! not ok code 0

And my npm-debug.log

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/0.8.8/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose read json /Users/sblock/projects/rendr-app-template/package.json
5 verbose run-script [ 'prestart', 'start', 'poststart' ]
6 info prestart [email protected]
7 info start [email protected]
8 verbose unsafe-perm in lifecycle true
9 silly exec sh "-c" "DEBUG=app:* node index.js"
10 silly sh,-c,DEBUG=app:* node index.js,/Users/sblock/projects/rendr-app-template spawning
11 info [email protected] Failed to exec start script
12 error [email protected] start: `DEBUG=app:* node index.js`
12 error `sh "-c" "DEBUG=app:* node index.js"` failed with 1
13 error Failed at the [email protected] start script.
13 error This is most likely a problem with the rendr-app-template package,
13 error not with npm itself.
13 error Tell the author that this fails on your system:
13 error     DEBUG=app:* node index.js
13 error You can get their info via:
13 error     npm owner ls rendr-app-template
13 error There is likely additional logging output above.
14 error System Darwin 11.4.0
15 error command "/usr/local/Cellar/node/0.8.8/bin/node" "/usr/local/bin/npm" "start"
16 error cwd /Users/sblock/projects/rendr-app-template
17 error node -v v0.8.8
18 error npm -v 1.1.59
19 error code ELIFECYCLE
20 verbose exit [ 1, true ]

from rendr-app-template.

zdwalter avatar zdwalter commented on June 12, 2024

I found a solution:
see http://gruntjs.com/getting-started

npm uninstall -g grunt
npm install -g grunt-cli

from rendr-app-template.

dylanharrington avatar dylanharrington commented on June 12, 2024

@zdwalter awesome, that worked for me. thanks!

from rendr-app-template.

scottrblock avatar scottrblock commented on June 12, 2024

@zdwalter worked for me, thanks so much!

from rendr-app-template.

ungoldman avatar ungoldman commented on June 12, 2024

Thanks @zdwalter! @airbnb folks, does this mean grunt-cli should be a package.json dependency, or is something else going on?

from rendr-app-template.

spikebrehm avatar spikebrehm commented on June 12, 2024

Hmm, Grunt wants you to install it with -g, which means it should be in package.json. I'll add something to the README.

from rendr-app-template.

spikebrehm avatar spikebrehm commented on June 12, 2024

I've added 'grunt-cli' to the package.json; is that poor practice, because it should be installed with -g? 681df30

from rendr-app-template.

ungoldman avatar ungoldman commented on June 12, 2024

Would probably be better to keep it out of dependencies and add a note to the README alerting users that grunt-cli needs to be installed globally.

from rendr-app-template.

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.