Comments (4)
You can pass --use
with npm
or yarn
to specify the package manager to run (it should already default to $npm_execpath
). You should be able to use --run false
to disable the automatic install. I will add these to the README, but they are also visible through the --help
flag.
pnpm
support is something we can look into during #190.
from astro.
An update to this has been merged. You can now pass --skip-install
.
Note that npm@7
now requires an extra --
, so npm init astro -- --skip-install
instead of npm@6
's npm init astro --skip-install
.
from astro.
we could use $npm_execpath to use the invoking package manager
from astro.
we could use $npm_execpath to use the invoking package manager
This works as long as it shares the relevant CLI. Which I believe is the case with PNPM but depending on what commands are used (including potential future expansion) may not be the case for Yarn.
A good compromise might be to require a flag (like say --install-dependencies
with an -i
shorthand), and include that flag in the documented command. Alternatively, while more work for Yarn users especially, an opt-out flag could be used.
from astro.
Related Issues (20)
- SVG loaded as url is turned into a data url during build HOT 10
- Using Sharp 0.33.2 on Vercel HOT 26
- Confuse message during build with file that didn't exist.
- There was an uncaught error in the middle of the stream while rendering (TypeError: iterator.return is not a function) HOT 1
- context.site different from Astro.site (missing base / pathname) HOT 6
- Styles contained in SCSS class passed to <Picture /> component's pictureAttributes.class not being applied HOT 3
- Astro islands inject invalid HTML HOT 3
- Unable to trigger onbeforeunload using ViewTransitions HOT 13
- Navigation among tabs in the Portfolio template is visibly slow HOT 5
- MDX closing tag bug HOT 3
- chore: unskip node streaming errors tests HOT 3
- Unexpected slow initial render when using "visibility: hidden" and "<label>" HOT 5
- Astro SSR doesn't render nested Vue components HOT 2
- Cannot deploy to Cloudflare Pages / __VUE_PROD_DEVTOOLS__ is not defined HOT 3
- When Chrome devtools is open the newly created site breaks HOT 1
- False positive for the `a11y-no-noninteractive-element-to-interactive-role` a11y audit HOT 1
- Astro.props is type as any when use Polymorphic HOT 8
- SSR Error: "require is not defined" with `@lexical/react` as dependency in Astro HOT 1
- The "page" prop in paginated dynamic routes doesnโt handle base URLs HOT 3
- Server crashes due to multiple runtime errors in Astro component (Astro + React) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from astro.