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

meteor-npm requirements cannot be found (rimraf, mkdirp) #12

Closed
lacco opened this issue Oct 14, 2013 · 17 comments
Closed

meteor-npm requirements cannot be found (rimraf, mkdirp) #12

lacco opened this issue Oct 14, 2013 · 17 comments

Comments

@lacco
Copy link

lacco commented Oct 14, 2013

I just did a fresh checkout of my meteor application, and suddenly meteor-npm seems to throw some weird error messages:

➜  url2tweet git:(production) ✗ mrt --settings settings/development.json -p 3000

Stand back while Meteorite does its thing
Done installing smart packages
Ok, everything's ready. Here comes Meteor!
[[[[[ ~/workspace/url2tweet ]]]]]
npm ERR! missing: rimraf@2.x, required by meteor-npm@0.1.6
npm ERR! missing: mkdirp@0.3.x, required by meteor-npm@0.1.6
npm ERR! not ok code 0

=> Errors prevented startup:
While building package `npm`:
error: couldn't read npm version lock information

=> Your application has errors. Waiting for file change.

"Reinstalling" meteor-npm didn't help: mrt remove npm && rm -R packages/npm && mrt add npm.

My setup:

➜  url2tweet git:(production) ✗ mrt --version    
Meteorite version 0.6.14
Release 0.6.6.1
➜  url2tweet git:(production) ✗ meteor --version
Release 0.6.6.1
➜  url2tweet git:(production) ✗ node --version
v0.10.20
➜  url2tweet git:(production) ✗ cat smart.lock
      "npm": {
        "git": "https://github.com/arunoda/meteor-npm.git",
        "tag": "v0.2.2",
        "commit": "ad83acff83385d5ea05997c8bbc2d7493ba4c04e"
      }

Do you have any idea what I can do? I have another checkout on the same computer which is working fine, the error message is only true for new checkouts. Thank you!

@yale
Copy link

yale commented Oct 14, 2013

+1

Seeing this only after updating to meteor 0.6.6.1.

@arunoda
Copy link
Member

arunoda commented Oct 15, 2013

Yes. This is a compatibility issue, when upgrading to 0.6.6.1.

Here comes the fix.

  1. remove old npm build with rm -rf packages/npm/.npm/ (run inside your project)
  2. run your meteor app again, everything works as usual

If you are using multiple projects with different meteor versions, this may cause issues.
So please use meteor-npm instead mrt add npm. See this guide for more information

@richieb
Copy link

richieb commented Oct 15, 2013

Thanks, Arunoda. That fixed the issue.

@lacco
Copy link
Author

lacco commented Oct 15, 2013

@arunoda , thank you! But the two steps doesn't work for me, probably because I am using different meteor versions? What do you mean by "So please use meteor-npm instead mrt add npm"? The link to the guide doesn't work...

@arunoda
Copy link
Member

arunoda commented Oct 15, 2013

I've updated the link. Please try it now.

@lacco
Copy link
Author

lacco commented Oct 15, 2013

Yay, that worked! Thank you very much!

@lacco lacco closed this as completed Oct 15, 2013
@arunoda
Copy link
Member

arunoda commented Oct 15, 2013

Cool.

@songkiller
Copy link

You are my hero arunoda!

@arunoda
Copy link
Member

arunoda commented Oct 15, 2013

he he :)
Thanks.

@andrenanninga
Copy link

I'm stilling having issues with this problem. I've tried the fix you posted above and the one in the article but can't get it to work.

I'm getting this error now

/home/andre/projects/application/src/app/.meteor/local/build/programs/server/boot.js:185
}).run();
   ^
Error: Could not load the bindings file. Tried:
 → /home/andre/projects/application/src/app/packages/npm/.npm/package/node_modules/libxmljs/build/xmljs.node
 → /home/andre/projects/application/src/app/packages/npm/.npm/package/node_modules/libxmljs/build/Debug/xmljs.node
 → /home/andre/projects/application/src/app/packages/npm/.npm/package/node_modules/libxmljs/build/Release/xmljs.node
 → /home/andre/projects/application/src/app/packages/npm/.npm/package/node_modules/libxmljs/out/Debug/xmljs.node
 → /home/andre/projects/application/src/app/packages/npm/.npm/package/node_modules/libxmljs/Debug/xmljs.node
 → /home/andre/projects/application/src/app/packages/npm/.npm/package/node_modules/libxmljs/out/Release/xmljs.node
 → /home/andre/projects/application/src/app/packages/npm/.npm/package/node_modules/libxmljs/Release/xmljs.node
 → /home/andre/projects/application/src/app/packages/npm/.npm/package/node_modules/libxmljs/build/default/xmljs.node
 → /home/andre/projects/application/src/app/packages/npm/.npm/package/node_modules/libxmljs/compiled/0.10.20/linux/x64/xmljs.node
    at bindings (/home/andre/projects/application/src/app/packages/npm/.npm/package/node_modules/libxmljs/node_modules/bindings/bindings.js:84:13)
    at Object.<anonymous> (/home/andre/projects/application/src/app/packages/npm/.npm/package/node_modules/libxmljs/lib/bindings.js:1:99)
    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)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/home/andre/projects/application/src/app/packages/npm/.npm/package/node_modules/libxmljs/index.js:4:16)
    at Module._compile (module.js:456:26)

Any idea what may be going wrong?

Thanks

@arunoda
Copy link
Member

arunoda commented Oct 15, 2013

I think this module need some binary dependancy on the system. Please check on that first.

@brentpayne
Copy link

+1 , thanks this fix worked for me

@tunght13488
Copy link

+1, save my day

@kevohagan
Copy link

+1 for 0.7.0 .

rm -rf packages/npm/.npm

works perfectly

@hharnisc
Copy link

another +1 for 0.7.0

@santhanam87
Copy link

works perfectly thanks :) +1

@dearlordylord
Copy link

Note: this trick also works if you switching between branches with different dependencies list (I.e. you installed new dependency in one branch but not in another).

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