Unable to resolve some modules: practicalmeteor_mocha - Testing

With the release of 1.3, I decided to go through the tutorials again. With both the Blaze and Angular tutorials, I run into the same thing on testing section.

Unable to resolve some modules:

“browser/escape-string-regexp” in /home/pete/.meteor/packages/practicalmeteor_mocha/.2.1.0_8.1bnbztn++os+web.browser+web.cordova/web.browser/mocha.js (web.browser)
“browser/path” in /home/pete/.meteor/packages/practicalmeteor_mocha/.2.1.0_8.1bnbztn++os+web.browser+web.cordova/web.browser/mocha.js (web.browser)
“growl” in /home/pete/.meteor/packages/practicalmeteor_mocha/.2.1.0_8.1bnbztn++os+web.browser+web.cordova/web.browser/mocha.js (web.browser)
“browser/tty” in /home/pete/.meteor/packages/practicalmeteor_mocha/.2.1.0_8.1bnbztn++os+web.browser+web.cordova/web.browser/mocha.js (web.browser)
“browser/diff” in /home/pete/.meteor/packages/practicalmeteor_mocha/.2.1.0_8.1bnbztn++os+web.browser+web.cordova/web.browser/mocha.js (web.browser)
“browser/fs” in /home/pete/.meteor/packages/practicalmeteor_mocha/.2.1.0_8.1bnbztn++os+web.browser+web.cordova/web.browser/mocha.js (web.browser)
“jade” in /home/pete/.meteor/packages/practicalmeteor_mocha/.2.1.0_8.1bnbztn++os+web.browser+web.cordova/web.browser/mocha.js (web.browser)
“browser/events” in /home/pete/.meteor/packages/practicalmeteor_mocha/.2.1.0_8.1bnbztn++os+web.browser+web.cordova/web.browser/mocha.js (web.browser)
“browser/debug” in /home/pete/.meteor/packages/practicalmeteor_mocha/.2.1.0_8.1bnbztn++os+web.browser+web.cordova/web.browser/mocha.js (web.browser)
“browser/glob” in /home/pete/.meteor/packages/practicalmeteor_mocha/.2.1.0_8.1bnbztn++os+web.browser+web.cordova/web.browser/mocha.js (web.browser)
“mocha” in /home/pete/.meteor/packages/practicalmeteor_mocha/.2.1.0_8.1bnbztn++os+web.browser+web.cordova/web.browser/mocha.js (web.browser)
"…/todsList" in /home/pete/meteorDev/angular-todos/imports/components/todosList/client/todosList.tests.js (web.browser)

Consider running: meteor npm install --save browser growl jade mocha

I then run meteor npm install --save browser growl jade mocha and the message then changes to:

Unable to resolve some modules:

“browser/escape-string-regexp” in /home/pete/.meteor/packages/practicalmeteor_mocha/.2.1.0_8.1bnbztn++os+web.browser+web.cordova/web.browser/mocha.js (web.browser)
“browser/path” in /home/pete/.meteor/packages/practicalmeteor_mocha/.2.1.0_8.1bnbztn++os+web.browser+web.cordova/web.browser/mocha.js (web.browser)
“browser/tty” in /home/pete/.meteor/packages/practicalmeteor_mocha/.2.1.0_8.1bnbztn++os+web.browser+web.cordova/web.browser/mocha.js (web.browser)
“browser/diff” in /home/pete/.meteor/packages/practicalmeteor_mocha/.2.1.0_8.1bnbztn++os+web.browser+web.cordova/web.browser/mocha.js (web.browser)
“browser/fs” in /home/pete/.meteor/packages/practicalmeteor_mocha/.2.1.0_8.1bnbztn++os+web.browser+web.cordova/web.browser/mocha.js (web.browser)
“browser/events” in /home/pete/.meteor/packages/practicalmeteor_mocha/.2.1.0_8.1bnbztn++os+web.browser+web.cordova/web.browser/mocha.js (web.browser)
“browser/debug” in /home/pete/.meteor/packages/practicalmeteor_mocha/.2.1.0_8.1bnbztn++os+web.browser+web.cordova/web.browser/mocha.js (web.browser)
“browser/glob” in /home/pete/.meteor/packages/practicalmeteor_mocha/.2.1.0_8.1bnbztn++os+web.browser+web.cordova/web.browser/mocha.js (web.browser)
"…/todsList" in /home/pete/meteorDev/angular-todos/imports/components/todosList/client/todosList.tests.js (web.browser)

Consider running: meteor npm install --save browser

I run that and nothing changes. I get this npm WARN message though when I run it.

npm WARN engine escodegen@1.8.0: wanted: {“node”:">=0.12.0"} (current: {“node”:“0.10.43”,“npm”:“2.14.22”})
browser@0.2.6 node_modules/browser
├── termcolor@0.2.0
├── u2r@0.1.3
├── junjo@0.2.8
└── cheerio@0.20.0 (entities@1.1.1, dom-serializer@0.1.0, css-select@1.2.0, htmlparser2@3.8.3, jsdom@7.2.2, lodash@4.6.1)

The testing works, but it would be nice to resolve these modules and stop getting the messages.

It’s mentioned in the README:

###Known Issues

  • When running meteor test and meteor test-packages you will get some “Unable to resolve some modules:” warnings, those are usually safe to ignore. We’re working on a fix to eliminate those warnings. See this issue for more info.

Sounds like it will be resolved but will take a short while first.

2 Likes

Thanks! I missed that apparently. Haven’t spent a lot of time on the issues as I’ve been having too much fun with all the new good stuff.

1 Like