Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with 0.31 #943

Closed
Emerson opened this issue Jun 8, 2014 · 10 comments
Closed

Problems with 0.31 #943

Emerson opened this issue Jun 8, 2014 · 10 comments

Comments

@Emerson
Copy link

Emerson commented Jun 8, 2014

I tried to update ember-cli on Friday night and have found myself struggling to get things working since then (I was on 0.28). I've pretty much started from scratch this morning, removing all node modules, with a fresh install of both node and npm, and although it seems like everything installs properly, trying to use the ember command results in an error:

npm install ember-cli -g
/usr/local/bin/ember -> /usr/local/lib/node_modules/ember-cli/bin/ember
ember-cli@0.0.31 /usr/local/lib/node_modules/ember-cli

~/Code  ember -v

module.js:340
    throw err;
    ^
Error: Cannot find module 'underscore'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/ember-cli/node_modules/testem/node_modules/backbone/backbone.js:41:51)
    at Object.<anonymous> (/usr/local/lib/node_modules/ember-cli/node_modules/testem/node_modules/backbone/backbone.js:1571:4)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
@Emerson
Copy link
Author

Emerson commented Jun 8, 2014

Ok, I got the ember command working again. I had to go manually into the /usr/local/lib/node_modules/ember-cli directory and run npm install. Seems like the package didn't install the dev-dependencies?

Going to try and book my old app now.

@stefanpenner
Copy link
Contributor

@Emerson it shouldn't need the dev dependencies other then for development of ember-cli itself.

It does seem like our recent "bundle assets attempt" isn't working out well. I am looking into it.

@Emerson
Copy link
Author

Emerson commented Jun 8, 2014

Weird - so within my app, I cleared out all the node_modules and reinstalled with the new ember-cli@0.31 dependency updated in my package.json.

I goto run ember server and get that same error above. Realizing that the ember command was now referencing the node_modules in my local app (rather than the global install) I go into the local ember-cli and run npm install and everything works again. Is it possible that underscore just needs to be added to the bundle dependencies?

@Emerson
Copy link
Author

Emerson commented Jun 8, 2014

And were back at this (had this problem on Friday night):

 ember server
version: 0.0.31
Livereload server on port 35729
Serving on http://0.0.0.0:4200
watch ENOENT
Error: watch ENOENT
    at errnoException (fs.js:1019:11)
    at FSWatcher.start (fs.js:1051:11)
    at Object.fs.watch (fs.js:1076:11)
    at Watcher.watchdir (/Users/emerson/Code/momentum-client/node_modules/ember-cli/node_modules/broccoli-sane-watcher/node_modules/sane/index.js:184:20)
    at new Watcher (/Users/emerson/Code/momentum-client/node_modules/ember-cli/node_modules/broccoli-sane-watcher/node_modules/sane/index.js:63:10)
    at sane (/Users/emerson/Code/momentum-client/node_modules/ember-cli/node_modules/broccoli-sane-watcher/node_modules/sane/index.js:21:10)
    at EventEmitter.Watcher_addWatchDir [as addWatchDir] (/Users/emerson/Code/momentum-client/node_modules/ember-cli/node_modules/broccoli-sane-watcher/index.js:55:17)
    at /Users/emerson/Code/momentum-client/node_modules/ember-cli/node_modules/broccoli/lib/builder.js:66:35
    at tryCatch (/Users/emerson/Code/momentum-client/node_modules/ember-cli/node_modules/rsvp/dist/commonjs/rsvp/-internal.js:163:16)
    at invokeCallback (/Users/emerson/Code/momentum-client/node_modules/ember-cli/node_modules/rsvp/dist/commonjs/rsvp/-internal.js:172:17)
    at /Users/emerson/Code/momentum-client/node_modules/ember-cli/node_modules/rsvp/dist/commonjs/rsvp/promise.js:178:17
    at flush (/Users/emerson/Code/momentum-client/node_modules/ember-cli/node_modules/rsvp/dist/commonjs/rsvp/asap.js:51:9)
    at process._tickDomainCallback (node.js:463:13)

@Emerson
Copy link
Author

Emerson commented Jun 8, 2014

Ok, I have things running again. After looking through some other issues it appears that my bower.json needed to be updated. I think the initial issue probably persists, but these other problems are related to misconfiguration on my end.

@stefanpenner
Copy link
Contributor

it seems like npm has a bug, and doesn't properly bundleDependencies :(

@stefanpenner
Copy link
Contributor

0.0.31 has been yanked. Investigating the NPM issue: npm/npm#5437

@Emerson
Copy link
Author

Emerson commented Jun 8, 2014

Really appreciate the time you've put into this. Hopefully the npm maintainers are able to get things fixed quickly.

@stefanpenner
Copy link
Contributor

Im having other npm related issues, which are preventing me from releasing 0.0.32 without bundling :(

@rwjblue
Copy link
Member

rwjblue commented Jun 10, 2014

0.0.33 is released now. We hope that this has ironed out the issues with NPM.

@rwjblue rwjblue closed this as completed Jun 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants