npm ERR! 403 MediaTypeBlocked: bootstrap@4.0.0-beta.2

registry
priority:low
triaged

(Pappasa) #1

What I Wanted to Do

I wanted to compile angular-split-website-src.

What Happened Instead

npm ERR! 403 MediaTypeBlocked: bootstrap@4.0.0-beta.2

Reproduction Steps

I downloaded angular-split-website-src, unzipped it, and ran npm install

Details

2018-10-22T07_48_35_107Z-debug.log (182.2 KB)

Platform Info

$ npm --versions
{ npm: '6.4.1',
  ares: '1.10.1-DEV',
  cldr: '32.0',
  http_parser: '2.8.0',
  icu: '60.1',
  modules: '57',
  napi: '3',
  nghttp2: '1.32.0',
  node: '8.12.0',
  openssl: '1.0.2p',
  tz: '2017c',
  unicode: '10.0',
  uv: '1.19.2',
  v8: '6.2.414.66',
  zlib: '1.2.11' }
$ node -p process.platform
win32

(Pappasa) #3

As you can see from the log, it was able to load until zone.js. If failed upon loading opn@4.0.2. Why is opn blocked? Beeing a Nodejs package, it should have only Javascript files.


(Rebecca Turner) #4

I’m unable to reproduce this (opn downloads and installs just fine for me). Is it possible that you’re using a corporate proxy that’s doing the blocking? I would note that it includes a rather large shell script, in addition to the JS.


(Pappasa) #5

Yes, when I try to download the opn zip file from github (https://github.com/sindresorhus/opn/archive/master.zip), I get the following error:

File Blocked

McAfee Web Gateway has blocked the file, because the detected media type (see below) is not allowed.

URL: https://codeload.github.com/sindresorhus/opn/zip/master
Filename: opn-master/xdg-open
Media Type (detected): application/x-sh, text/plain
Media Type (from file name):
Transaction ID: 2RfjtX8NckzXyi+WNwZD+/qOiMHdTn86e1QCdP41HoZY/wQ3Bi2xwJU9q47ekwa0wYINdA2QC+dPajS6UGDMMg==
This message was generated by webwash3

generated 2018-10-25 10:26:11 by McAfee Web Gateway

It seems that the coporate proxy blocks shell scripts.