React: Getting error EUNSUPPORTEDPROTOCOL

Created on 11 Oct 2018  路  6Comments  路  Source: facebook/react

While trying to install using npm install, i was getting below error:
**npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "link:": link:./scripts/eslint-rules/

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-10-11T06_52_49_537Z-debug.log**

On debugging understood that dependency "eslint-plugin-react-internal": "link:./scripts/eslint-rules/" in package.json is giving error. Currently there is no version of eslint-plugin-react-internal package.

Can we run all cases even after removing this dependency from package.json.

Thanks in advance.

Most helpful comment

change 'link' to 'file' can solve this problem for me ( in mac Hige Sierra)
"eslint-plugin-react-internal": "file:./scripts/eslint-rules/"

The reference that I learn from is in:
https://stackoverflow.com/questions/14381898/local-dependency-in-package-json/14387210#14387210

All 6 comments

I suggest you to use node 8.9.4 recommended version and install your package with sudo permission.

`sudo npm install'

Hi! We use the issue tracker for bug reports and feature requests.

If you have a question, please check our community support resources:
https://facebook.github.io/react/community/support.html

change 'link' to 'file' can solve this problem for me ( in mac Hige Sierra)
"eslint-plugin-react-internal": "file:./scripts/eslint-rules/"

The reference that I learn from is in:
https://stackoverflow.com/questions/14381898/local-dependency-in-package-json/14387210#14387210

@peachen It worked for me. Thank you so much

You can also choose to use yarn install the packages, it supports this.

change 'link' to 'file' can solve this problem for me ( in mac Hige Sierra)
"eslint-plugin-react-internal": "file:./scripts/eslint-rules/"

The reference that I learn from is in:
https://stackoverflow.com/questions/14381898/local-dependency-in-package-json/14387210#14387210

this works in windows env. thanks

Was this page helpful?
0 / 5 - 0 ratings