-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Possible dependency loop: Cannot find module 'brace-expansion' #330
Comments
It seems like some sort of dependency loop. I had to create a |
My best guess here is that you've run into the npm/npm#8152 race condition that I believe has been fixed in npm v3. Are you able to upgrade the globally-installed version of npm? |
My global version of npm is 3.3.12. It is one that came with nodejs v5.3.0. |
Ah, in that case this problem looks more like nodejs/node#3922 The stacktrace suggests
|
This is relevant section from my "devDependencies": {
"auto-reload-brunch": ">= 1.0 < 1.9",
"chai": "^3.4.1",
"clean-css-brunch": ">= 1.0 < 1.9",
"css-brunch": ">= 1.0 < 1.9",
"hippie": "^0.4.0",
"javascript-brunch": ">= 1.0 < 1.9",
"jshint": "~2.6.3",
"less-brunch": "^1.8.1",
"mocha": "^2.2.0",
"mocha-bamboo-reporter": "^1.1.0",
"stylus-brunch": "^1.8.1",
"uglify-js-brunch": ">= 1.0 < 1.9"
},
"dependencies": {
"aws-sdk": "^2.1.45",
"bcrypt": "^0.8.5",
"bcrypt-nodejs": "^0.0.3",
"body-parser": "^1.13.3",
"cache-manager": "^1.2.2",
"cache-manager-redis": "^0.2.1",
"connect-flash": "^0.1.1",
"connect-memcached": "^0.1.0",
"cookie-parser": "^1.3.5",
"csurf": "^1.8.3",
"express": "^4.13.3",
"express-handlebars": "^2.0.1",
"express-session": "^1.11.3",
"handlebars": "^4.0.5",
"jshint-brunch": "^1.8.0",
"jsonwebtoken": "^5.4.1",
"lodash": "^3.10.1",
"memcached": "^2.1.0",
"newrelic": "~1.24.0",
"node-uuid": "^1.4.3",
"nodemailer": "^1.4.0",
"nodemailer-ses-transport": "^1.3.0",
"passport": "^0.2.2",
"passport-local": "^1.0.0",
"pg": "^4.4.1",
"pg-hstore": "^2.3.2",
"sequelize": "^3.5.1",
"sharp": "^0.12.1",
"zxcvbn": "^4.2.0"
} I think that should be enough to reproduce the issue. |
Oh BTW, Node.js v5.x is installed directly from the official |
@dtoubelis Have you been able to make any progress with this problem? |
No not really, I run npm install twice and then shrinkwrap it. That is an extra step but it does it for me. |
@dtoubelis Thanks for the update - I'll leave this open to see if others run into the same problem. |
npm install
fails on Ubuntu 14.04
Closing this as there have been no further reports of a similar problem in the last 6 months. |
Same for node 8.9.4, npm 5.6.0 |
I've added
"sharp": "^0.12.1"
to mypackage.json
and I'm usingnpm install
to install the package on Ubuntu 14.04. It is failing with the following message:Subsequent run of
npm instal
is successful and I'm able to install and use the package, however, this wrecks havoc with our automated builds.The text was updated successfully, but these errors were encountered: