Closed piotrd closed 6 years ago
Hmm, that error talks about packages I don't recognize (karma-browserify
, etc.).
requireDir
has no (non-dev) dependencies, post-install hook, etc.:
https://github.com/aseemk/requireDir/blob/master/package.json
So that error may not be for requireDir
...
Let me know if I'm wrong though, and good luck!
Thanks for a prompt comment. I'll try to investigate that further.
FWIW, this looks suspiciously like a problem with npm
itself.
I would first attempt to fix the environment with:
# Wipe existing dependencies.
# May or may not need sudo, depending on who owns node_modules
sudo rm -rf node_modules;
# Make sure npm isn't using a corrupted cache or anything.
npm cache clean;
# Upgrade npm to the latest version.
npm install -g npm@latest;
Then try to install this module again:
# Fresh install of all dependencies in package.json
# Presumably, you've put require-dir in there.
npm install;
shouldn't be an issue anymore, let me know if it is and i can reopen
When testing readiness of my build to be used with the newest nodejs v4.2.3, I encounter (among others) this error:
This means that I cannot launch my project with current
require-dir
. Any thoughts? I am using https://www.npmjs.com/package/upgrade-ready tool for readiness verification.