We've added file-level JavaScript variable scoping. Variables declared with var at the outermost level of a JavaScript source file are now private to that file. Remove the var to share a value between files.
var Fiber = Npm.require('fibers');
You received this message because you are subscribed to the Google Groups "meteor-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meteor-core...@googlegroups.com.
To post to this group, send email to meteo...@googlegroups.com.
Visit this group at http://groups.google.com/group/meteor-core?hl=en.
Great! But how can we use Npm.depends?I'm trying to create a package.js in the root of my app, then just type in:Npm.depends 'node-blahblah'
This throws:app/package.js:1(function(Npm){Npm.depends 'node-blahblah'^^^^^^^^^^^^^^SyntaxError: Unexpected string
Hi guys, I encountered a problem while upgrading to Meteor 0.6.0 on Mac Lion.
What i did:
mac$ meteor updateAfter downloading, error pops up
/Users/stan/node_modules/fibers/fibers.js:5
throw new Error(
^
Error: `node` has a newer mtime than `fiber`; it is possible your build is out of date. This could happen if you upgrade node. Try `npm rebuild fibers` to rebuild. If that doesn't work you could consider running `touch /Users/stan/node_modules/fiberssrc/fibers` and maybe there won't be a problem.
Then i did a
mac$ npm rebuild fibersand it passes.
I then did the update thing again.
mac$ sudo meteor update/Users/stan/.meteor/tools/54fc781f89/tools/meteor.js:2
Fiber(function () {
^
TypeError: object is not a function
at Object.<anonymous> (/Users/stan/.meteor/tools/54fc781f89/tools/meteor.js:2:1)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain (module.js:492:10)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
Stuck now, I'm not sure what to make of it - hoping to get your help.
Thanks!
--
I think this happened even without NODE_PATH set because node's `require` looks up the directory tree for directories named 'node_modules'.
Hey Nick, thanks for getting back.
I've removed the node_modules directory and it seems fine now. Also I didn't have the NODE_PATH envir vars set. Anyhoo, it's working after removing the nodes_module directory.
Thanks for your help again.
--
Error: Corrupted .npm directory -- can't find npm-shrinkwrap.json ...
You received this message because you are subscribed to the Google Groups "meteor-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meteor-core...@googlegroups.com.
To post to this group, send email to meteo...@googlegroups.com.
Visit this group at http://groups.google.com/group/meteor-core?hl=en.