Issue(npm CONNECT) with the latest version of meteor 0.6.6.3
the latest version of meteor is throwing up the following error with this package.
Note : the earlier version are working just fine .. the new version is showing error with the CONNECT I tried changing versions but it didn't help. Please check the error message.
W2042-21:33:04.819(5.5)? (STDERR) /home/sandeep/dev/examples/angular-meteor-seed/.meteor/local/build/programs/server/boot.js:185 W2042-21:33:04.876(5.5)? (STDERR) }).run(); W2042-21:33:04.876(5.5)? (STDERR) ^ W2042-21:33:04.876(5.5)? (STDERR) Error: Cannot find module 'connect' W2042-21:33:04.877(5.5)? (STDERR) at Function.Module._resolveFilename (module.js:338:15) W2042-21:33:04.877(5.5)? (STDERR) at Function.Module._load (module.js:280:25) W2042-21:33:04.877(5.5)? (STDERR) at Module.require (module.js:364:17) W2042-21:33:04.877(5.5)? (STDERR) at require (module.js:380:17) W2042-21:33:04.877(5.5)? (STDERR) at Object.Npm.require (/home/sandeep/dev/examples/angular-meteor-seed/.meteor/local/build/programs/server/boot.js:87:18) W2042-21:33:04.877(5.5)? (STDERR) at Package (packages/angularjs/server.js:1) W2042-21:33:04.877(5.5)? (STDERR) at packages/angularjs.js:67:4 W2042-21:33:04.878(5.5)? (STDERR) at packages/angularjs.js:74:3 W2042-21:33:04.878(5.5)? (STDERR) at /home/sandeep/dev/examples/angular-meteor-seed/.meteor/local/build/programs/server/boot.js:154:10 W2042-21:33:04.878(5.5)? (STDERR) at Array.forEach (native)
Any updates here.. anyone facing the same issue?
STEPS
CMDS:
mrt create angularCheck cd angularCheck/ mrt add angularjs mrt
=> Meteor server running on: http://localhost:3000/ W2044-19:37:42.123(5.5)? (STDERR) /home/sandeep/dev/examples/angularCheck/.meteor/local/build/programs/server/boot.js:185 W2044-19:37:42.172(5.5)? (STDERR) }).run(); W2044-19:37:42.172(5.5)? (STDERR) ^ W2044-19:37:42.172(5.5)? (STDERR) Error: Cannot find module 'connect' W2044-19:37:42.172(5.5)? (STDERR) at Function.Module._resolveFilename (module.js:338:15) W2044-19:37:42.172(5.5)? (STDERR) at Function.Module._load (module.js:280:25) W2044-19:37:42.172(5.5)? (STDERR) at Module.require (module.js:364:17) W2044-19:37:42.172(5.5)? (STDERR) at require (module.js:380:17) W2044-19:37:42.173(5.5)? (STDERR) at Object.Npm.require (/home/sandeep/dev/examples/angularCheck/.meteor/local/build/programs/server/boot.js:87:18) W2044-19:37:42.173(5.5)? (STDERR) at Package (packages/angularjs/server.js:2) W2044-19:37:42.173(5.5)? (STDERR) at packages/angularjs.js:68:4 W2044-19:37:42.173(5.5)? (STDERR) at packages/angularjs.js:75:3 W2044-19:37:42.173(5.5)? (STDERR) at /home/sandeep/dev/examples/angularCheck/.meteor/local/build/programs/server/boot.js:154:10 W2044-19:37:42.173(5.5)? (STDERR) at Array.forEach (native) => Exited with code: 8 => Meteor server restarted W2044-19:37:42.448(5.5)? (STDERR) /home/sandeep/dev/examples/angularCheck/.meteor/local/build/programs/server/boot.js:185 W2044-19:37:42.449(5.5)? (STDERR) }).run(); W2044-19:37:42.449(5.5)? (STDERR) ^ W2044-19:37:42.452(5.5)? (STDERR) Error: Cannot find module 'connect' W2044-19:37:42.452(5.5)? (STDERR) at Function.Module._resolveFilename (module.js:338:15) W2044-19:37:42.452(5.5)? (STDERR) at Function.Module._load (module.js:280:25) W2044-19:37:42.452(5.5)? (STDERR) at Module.require (module.js:364:17) W2044-19:37:42.453(5.5)? (STDERR) at require (module.js:380:17) W2044-19:37:42.453(5.5)? (STDERR) at Object.Npm.require (/home/sandeep/dev/examples/angularCheck/.meteor/local/build/programs/server/boot.js:87:18) W2044-19:37:42.453(5.5)? (STDERR) at Package (packages/angularjs/server.js:2) W2044-19:37:42.453(5.5)? (STDERR) at packages/angularjs.js:68:4 W2044-19:37:42.454(5.5)? (STDERR) at packages/angularjs.js:75:3 W2044-19:37:42.454(5.5)? (STDERR) at /home/sandeep/dev/examples/angularCheck/.meteor/local/build/programs/server/boot.js:154:10 W2044-19:37:42.454(5.5)? (STDERR) at Array.forEach (native) => Exited with code: 8 => Meteor server restarted W2044-19:37:43.012(5.5)? (STDERR) /home/sandeep/dev/examples/angularCheck/.meteor/local/build/programs/server/boot.js:185 W2044-19:37:43.013(5.5)? (STDERR) }).run(); W2044-19:37:43.013(5.5)? (STDERR) ^ W2044-19:37:43.016(5.5)? (STDERR) Error: Cannot find module 'connect' W2044-19:37:43.017(5.5)? (STDERR) at Function.Module._resolveFilename (module.js:338:15) W2044-19:37:43.017(5.5)? (STDERR) at Function.Module._load (module.js:280:25) W2044-19:37:43.017(5.5)? (STDERR) at Module.require (module.js:364:17) W2044-19:37:43.018(5.5)? (STDERR) at require (module.js:380:17) W2044-19:37:43.018(5.5)? (STDERR) at Object.Npm.require (/home/sandeep/dev/examples/angularCheck/.meteor/local/build/programs/server/boot.js:87:18) W2044-19:37:43.018(5.5)? (STDERR) at Package (packages/angularjs/server.js:2) W2044-19:37:43.018(5.5)? (STDERR) at packages/angularjs.js:68:4 W2044-19:37:43.018(5.5)? (STDERR) at packages/angularjs.js:75:3 W2044-19:37:43.018(5.5)? (STDERR) at /home/sandeep/dev/examples/angularCheck/.meteor/local/build/programs/server/boot.js:154:10 W2044-19:37:43.019(5.5)? (STDERR) at Array.forEach (native)
I have the same problem.
I follow instruction on github but i have exactly the same error.
I solved this problem by removing the whole "server.js" file from the angularjs package. Then use a normal meteor layout for your top level html. Just make sure you don't use any {{}} expressions in it (e.g. only use ng-include or ng-view). You can start your angular app by using a bootstrap js:
angular.element(document).ready(function() { angular.bootstrap(document, ['exampleApp']); });
Using ng-app on the body should probably also work, but I didn't test it.
Getting the package from github instead of atmosphere and running 'meteor add angularjs' solved this issue for me.
@raphonic : can you explain step by step how you install angular with meteor because i try to install manually but i have this error on Firefox :
Error: ENOENT, no such file or directory '/Volumes/D/workspace_mrt/poc_angular_v2/.meteor/local/build/programs/server/.meteor/local/build/app.html' at Object.fs.openSync (fs.js:427:18) at Object.fs.readFileSync (fs.js:284:15) at packages/angularjs/server.js:15
Thank you
@tony-tran ,I also had to make a few adjustments to the paths specified in the package. They are very to similar to what's in @cherbst's fork https://github.com/cherbst/Meteor_angularjs(latest commit). Just clone that repo to your 'packages' folder and then run 'meteor add angularjs', don't use 'mrt', it didn't work for me.