-1
While trying to install dependencies in my project, I get the following error message:
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.
– Murilo Portugal
What version of NPM is using?
– Woss
I am using Version 6.9.0
– Felipe Menezes