question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Global option to --skip-install for new projects

See original GitHub issue

Versions


    _                      _                 ____ _     ___
   / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
  / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
 / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
/_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
               |___/
    
Angular CLI: 1.5.5
Node: 8.9.1
OS: linux x64
Angular: 
...

FEATURE REQUEST

Currently, a new project can be scaffolded using ng new myProject. which by default uses npm to install node_modules. and, we can also set yarn instead of npm.

Installation time for the packages by cli is always greater than manual npm install or yarn install.

Hence there is an option to skip install the npm packages by using ng new myProject --skip-install.

Can we globally set an option to skip install the packages globally for all new projects?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
sibiraj-scommented, Nov 30, 2017

@filipesilva .

In my PC. I made a rough calculation

2Minutes-5sec. Installation via ng new myProject

40seconds

  1. ng new myProject --skip-install
  2. cd myProject
  3. npm install (took 40s)

I think it would be better to fix whatever it makes it slow than to add new functionality that is essentially an workaround.

I was just saying If an option to set skip install for new projects globally will be a nice one not stating as a workaround.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 8, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm - Skip install for particular dep - Stack Overflow
Run npm link from /home/me/hacked-npm/lodash · cd to the project where you want to use the modified dependency · Do your npm install...
Read more >
npm-install - npm Docs
In global mode (ie, with -g or --global appended to the command), it installs the current package context (ie, the current working directory)...
Read more >
pip install - pip documentation v22.3.1
Directory to check out editable projects into. The default in a virtualenv is “<venv path>/src”. The default for global installs is “<current dir>/src”....
Read more >
dotnet tool install command - .NET CLI - Microsoft Learn
To install a local tool, omit the --global and --tool-path options. Global tools are installed in the following directories by default when you ......
Read more >
ng new - Angular
Option Description Value Type Default Value ‑‑commit Initial git repository commit information. boolean true ‑‑directory The directory name to create the workspace in. string ‑‑force Force...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found