what is --ci and --no-ci options in lerna bootstrap - monorepo

I found following command in certain package.json.I understand lerna bootstrap is like npm install. but I couldn't figure out what is the --ci and --no-ci options of that
lerna bootstrap --ci
lerna bootstrap --no-ci
I read lerna read.me,but I couldn't find out this kind of options.
Are there any document of that ?
Thanks

When you do lerna bootstrap, it by default runs npm ci. If you provide --no-ci argument, then it will run npm install.
Check this section of their README for more info.

Related

How to install React-bootstrap and markdown with Yarn?

I created the app wiyh npx-create-app, yarn start workes well. But when I try to install React-bootstrap and marked with Yarn:
yarn add react-bootstrap bootstrap
yarn add marked
The modules doesn't appeared in the package.json file. Doesn't worked.
This is the console:
Then I tried with npm :
npm install react-bootstrap bootstrap
npm install marked
That's worked well.
Why that's doesn't work with yarn ?
I tried also to make yarn install before but the console displayed "info No lockfile found". So I'm litle confused with yarn. What I have to do, in which order ?

How to install an NPM plugin using react-scripts

I am trying to install and use the eslint-plugin-react-hooks plugin in a project. Usually I'd simply run npm install or yarn add but the directions say to use react-scripts because I'm using create-react-app. How do I do that? Do I add a script and list it as a dependency on the package.json file or is there some other way?
Any help is appreciated.

Reactjs, yarn etc

I want to create a test React apllication but I am stuck at the installation:
I install Yarn with npm because the yarn msi doesn't start, so:
1. npm i .g yarnpkg
2. yarn create react-app test
and I read this error message:
yarn create v0.15.1 error Couldn't find a package.json (or bower.json)
file in C:\Users***\React
at C:\Users***\AppData\Roaming\npm\node_modules\yarnpkg\lib\config.js:355:13
at Generator.next ()
at step (C:\Users***\AppData\Roaming\npm\node_modules\yarnpkg\node_modules\babel-runtime\helpers\asyncToGenerator.js:17:30)
at C:\Users***\AppData\Roaming\npm\node_modules\yarnpkg\node_modules\babel-runtime\helpers\asyncToGenerator.js:28:13
info Visit http://yarnpkg.com/en/docs/cli/create for documentation
about this command.
I tried to search it on Internet but they did not solve my problem. Please, help me.
To anyone visiting this thread in 2021, it's very likely you're running
yarn create-react-app my-app instead of yarn create react-app my-app.
You should initiate a npm project first.
cd projectfolder
npm init
yarn create react-app my-app

How do I properly configure ng from npm as a normal CLI command?

I am seeing tutorials with NPM and Node.js that have the ng package handler. However, they run this straight from the command prompt. I am curious if I am missing something to install to run commands like ng serve for example, without having to preface them with npm run like npm run ng serve --open ?
Thank you!
You don't naturally prefix the ng server with npm run
Install the angular-cli globally
npm i -g #angular/cli
Then you will be able to do:
ng serve
ng new [appname]
ng generate component [name]
Without any prefix and from anywhere.
It's not recommended to install #angular/cli globally. Some projects will use different version of angular#cli and executing ng commands will have unexpected result.
Instead, install locally into dev dependencies with:
npm install --save-dev angular#cli
or Yarn:
yarn add --dev angular#cli
After you install locally, you can setup various npm scripts to execute ng commands:
scripts: {
"dev": "ng serve"
}
Run the script:
npm run dev
** Please note, if you have globally installed angular#cli, running the commands mentioned above will use the local angular#cli package from node_modules/.bin.
Also, npx is a tool intended to help round out the experience of using packages from the npm registry. You can read about it more here

react-scripts missing after install redux

i created react app according steps described here https://www.sitepoint.com/getting-started-react-beginners-guide/
npm i -g create-react-app
create-react-app myapp
yarn start
Everything worked ok, so i tried install redux as it described here
https://redux.js.org/docs/basics/UsageWithReact.html
npm install --save react-redux
I got this message
react-redux#5.0.7
added 3 packages, removed 1061 packages and updated 18 packages in 14.541s
and now when i try
yarn start
i get message
yarn run v1.3.2
$ react-scripts start
'react-scripts' is not recognized as an internal or external command,
operable program or batch file.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Whats wrong? I don't understand why is react-scripts not working. I thought that --save adds the third-party package to the package's dependencies and have nothing to do with other packages.
Iam thankfull for every advice what i did wrong and how to fix it.
Thanks
Instead of npm install --save react-redux you should install redux package using yarn.
yarn add redux
issue :
You are creating app using yarn package manager and then adding new packages using npm causing to eject the packages installed using yarn.
Because of this react-scripts getting remove throwing the error.

Resources