npm ERR! code E405

Asked

Viewed 349 times

-1

While trying to install dependencies in my project, I get the following error message:

inserir a descrição da imagem aqui

I typed in

npm i --save-dev [email protected]

I received the above error. Same with other dependencies.


Follow the log:

0 info it worked if it ends with ok

1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',

1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',

1 verbose cli   'install',

1 verbose cli   '-g',

1 verbose cli   'npm' ]

2 info using [email protected]

3 info using [email protected]

4 verbose npm-session 6b7fffb5af9f5e00

5 silly install loadCurrentTree

6 silly install readGlobalPackageData

7 http fetch GET 405 http://registry.npmjs.org/extract-text-webpack-plugins/npm 313ms

8 silly fetchPackageMetaData error for npm@latest 405 Method Not Allowed - GET http://registry.npmjs.org/extract-text-webpack-plugins/npm

9 timing stage:rollbackFailedOptional Completed in 0ms

10 timing stage:runTopLevelLifecycles Completed in 338ms

11 verbose stack Error: 405 Method Not Allowed - GET http://registry.npmjs.org/extract-text-webpack-plugins/npm

11 verbose stack     at res.buffer.catch.then.body (C:\Program 
Files\nodejs\node_modules\npm\node_modules\npm-registry-fetch\check-response.js:104:15)

11 verbose stack     at process._tickCallback (internal/process/next_tick.js:68:7)

12 verbose statusCode 405

13 verbose pkgid npm@latest

14 verbose cwd C:\Users\Felipe\Desktop\estudos-react-felipe\todo-app\frontend

15 verbose Windows_NT 10.0.17134

16 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "npm"
17 verbose node v10.16.3

18 verbose npm  v6.9.0

19 error code E405

20 error 405 Method Not Allowed - GET http://registry.npmjs.org/extract-text-webpack-plugins/npm

21 verbose exit [ 1, true ]
  • Friend, it would be interesting for you to post the log of the 2019-08-26T14_05_41_022Z-debug.log file, as reported in your error.

  • What version of NPM is using?

  • I am using Version 6.9.0

1 answer

0


The package extract-text-webpack-plugins is no longer available on NPM, so there is no way to install.

Allies, it was supposed to happen error 404:

C:\teste>npm i --save-dev [email protected]
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/extract-text-webpack-plugins - Not found
npm ERR! 404
npm ERR! 404  '[email protected]' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\new_g\AppData\Roaming\npm-cache\_logs\2019-08-26T14_14_34_618Z-debug.log

What do you mean unseen, 405 probably occurred for one of the following reasons:

  • Bug in your version of NPM
  • Are you using some proxy

How to install a package outside of NPM?

As I said, there is no more this package in NPM, if you access https://github.com/webpack-contrib/extract-text-webpack-plugin#deprecated will read the message:

DEPRECATED

Please use: https://github.com/webpack-contrib/mini-css-extract-plugin

In short, you can try (I don’t know if it works with webpack1):

npm install --save-dev mini-css-extract-plugin

Or if you really want to use a package that does not exist in NPM install pointing a link from an online repository, example:

npm install user-name/repo-name#webpack-1 --save-dev

Browser other questions tagged

You are not signed in. Login or sign up in order to post.