Strange error on my raspberry pi trying to install webpack "method not allowed"

pi@raspberrypi:~/Desktop/Mecha-Website/public_html $ npm install --save webpack
(node:23567) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm WARN package.json Mecha-Website@0.0.0 No description
npm WARN package.json Mecha-Website@0.0.0 No repository field.
npm WARN package.json Mecha-Website@0.0.0 No README data
npm ERR! Error: Method Not Allowed
npm ERR! at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10)
npm ERR! at /usr/share/npm/lib/cache/add-named.js:120:12
npm ERR! at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7)
npm ERR! at FSReqWrap.oncomplete (fs.js:135:15)
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues

npm ERR! System Linux 4.14.82-v7+
npm ERR! command “/usr/bin/node” “/usr/bin/npm” “install” “–save” “webpack”
npm ERR! cwd /home/pi/Desktop/Mecha-Website/public_html
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21
npm ERR! code E405
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/pi/Desktop/Mecha-Website/public_html/npm-debug.log
npm ERR! not ok code 0

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.