From 23726ccf9f742604d0a29c8c8a5f951018f341b9 Mon Sep 17 00:00:00 2001 From: newcanopies <65022111+newcanopies@users.noreply.github.com> Date: Sat, 24 Apr 2021 10:01:39 +0200 Subject: [PATCH 1/2] README.md:9 omit package name from $ npm install formerly: $ npm install react-ros npm ERR! code ENOSELF npm ERR! Refusing to install package with name "react-ros" under a package npm ERR! also called "react-ros". Did you name your project the same npm ERR! as the dependency you're installing? npm ERR! npm ERR! For more information, see: npm ERR! https://docs.npmjs.com/cli/install#limitations-of-npms-install-algorithm --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0877c23..6a45106 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ Connect your website to your robot! ## Install -```bash -npm install react-ros +``` +$ npm install ``` ## Usage From fcc591aedc11cdc16a2ad279f367dd9ca679affe Mon Sep 17 00:00:00 2001 From: newcanopies <65022111+newcanopies@users.noreply.github.com> Date: Mon, 26 Apr 2021 13:17:28 +0200 Subject: [PATCH 2/2] differentiates standalone npm install if there are not enough use-cases for standalone install, feel free to remove section: ## Install react-ros as standalone dev ``` $ npm install ``` --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6a45106..5460ab7 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,13 @@ Connect your website to your robot! [![NPM](https://img.shields.io/npm/v/react-ros.svg)](https://www.npmjs.com/package/react-ros) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) -## Install +## Add react-ros to existing npm project + +``` +$ npm install react-ros +``` + +## Install react-ros as standalone dev ``` $ npm install