Following some guidance on the net, I edited my package.json
to include a link
URL:
...
"dependencies": {
...
"react": "link:../some-other-module/node_modules/react",
}
But when installing, I get the following error:
$ npm install
npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "link:": link:../some-other-module/node_modules/react
CodePudding user response:
This is because link
has been replaced with file
in recent versions of NPM. Simply update your package.json
:
...
"dependencies": {
...
"react": "file:../some-other-module/node_modules/react",
}