question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot remove "babel-plugin-transform-es2015-modules-commonjs" from the plugin list

See original GitHub issue

On my debian with node v6.2.2 and npm v2.14.8 I get erorr while doing npm install

Reproduce:

$ git clone https://github.com/yelouafi/redux-saga.git
$ cd redux-saga
$ npm install

I get the following error:

Error: Cannot remove "babel-plugin-transform-es2015-modules-commonjs" from the plugin list.
    at Object.<anonymous> (/home/eli/repos/redux-saga/node_modules/babel-preset-es2015-webpack/index.js:35:11)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at /home/eli/repos/redux-saga/node_modules/babel-core/lib/transformation/file/options/option-manager.js:324:15
    at Array.map (native)

More error:

67246 error Linux 3.16.0-4-amd64
67247 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
67248 error node v6.2.2
67249 error npm  v3.9.5
67250 error code ELIFECYCLE
67251 error redux-saga@0.11.0 prepublish: `npm run check && npm run compile && npm run build`
67251 error Exit status 1
67252 error Failed at the redux-saga@0.11.0 prepublish script 'npm run check && npm run compile && npm run build'.
67252 error Make sure you have the latest version of node.js and npm installed.
67252 error If you do, this is most likely a problem with the redux-saga package,
67252 error not with npm itself.
67252 error Tell the author that this fails on your system:
67252 error     npm run check && npm run compile && npm run build
67252 error You can get information on how to open an issue for this project with:
67252 error     npm bugs redux-saga
67252 error Or if that isn't available, you can get their info via:
67252 error     npm owner ls redux-saga
67252 error There is likely additional logging output above.
67253 verbose exit [ 1, true ]

Am I doing something obviously wrong or is there a problem with this repo?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Andaristcommented, Aug 17, 2016

Probably there isnt, cause it is a problem with a package its depending on (babel-preset-es2015). I’ve found why this had happened. Culprit is here - https://github.com/babel/babel/commit/c6354a2132c18caca18792a544105cc1e932987a#diff-a854a9360f2dd5153da7e0f8ed87c965 . [].concat flattens arrays, so concatening an array to an array is like adding elements from the second one to the first one. And they have changed it so the second flat wasnt flattened at all and the list became [a,b,c, [d]] instead of [a,b,c,d]. Therefore filtering in another package babel-preset-es2015-webpack just broke. Im gonna make a pull request to fix it in few minutes.

0reactions
elitancommented, Aug 17, 2016

@Andarist sounds very good. Finally I can start learning and using redux saga. Thank you so much.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Cannot remove 'babel-plugin-transform-es2015-modules ...
The issue is that, for projects that have babel-preset-es2015 installed on npm 3+, the commonJsPlugin variable is resolving to the path set for ......
Read more >
Cannot Remove Plugin Without Breaking Site - WordPress.org
Hello, I am finding it impossible to remove this plugin without breaking the WordPress site. I have tried everything and as soon as...
Read more >
Cannot remove plugin from list even though it is uninstalled
Hi, there are several plugins that do not have the 'Uninstall' option under the … icon. Even though I have uninstalled them from...
Read more >
Delete/Remove unwanted plugins from FL Studio 20 plugin list
Let's say you don't use some plugin or simply want to organize your FL Studio plugin list completely so it doesn't mess up...
Read more >
How To Delete Vsts From Your Plugin List In Fl Studio (#NPLB)
No Producers Left Behind! Subscribe so you wont be left behind. Hope This One Helps, enjoy the video! ⚡ Like, Comment,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found