Comments (6)
frozen-lockfile=false
just means that pnpm install
will not fail if the lockfile is outdated. It does not mean updating. Please use pnpm update [--latest]
instead.
from pnpm.
Thanks for the reply but frozen-lockfile=true
won't update the lock file either. So what exactly is the difference between them ?
from pnpm.
--frozen-lockfile
only means that it will fail if the lockfile is not up-to-date with the package.json
. This is important for CI and reproducibility.
from pnpm.
If you want to update your packages, use pnpm update
.
from pnpm.
Thanks for the update. One of main reasons I raised my question was because 2 high score questions and answers on stackoverflow. I find the accepted answers all had some confusion.
-
pnpm equivalent command for npm ci. This question has the highest scores in SO about pnpm. The accepted answer said
pnpm install --frozen-lockfile
. But after reading your comments and check the pnpm document I feel they are not exactly equivalent because pnpm dectects whether it is in CI or not automatically and it is not in CI environment it will still proceed and install according to the lock file(my confusion in the first place). Butnpm ci
does not check whether it is in CI, it just checks whether the lock file is present or not and if it is present it will install packages according to the lock file. So I feelnpm ci
is more likepnpm install --frozen-lockfile=false
. Am I right ? -
How to have
pnpm install
install everything exactly to the specs of the pnpm-lock file?. This question caused me another confusion. Because the question said
I'm using pnpm, is there anyway I can have pnpm install look at the existing pnpm-lock.yaml so I can eventually build a project that is entirely the same as a previous build I had 6 months ago?
But doesn't pnpm just work like that, i.e. always uses the lock file if present so we will get "entirely the same as a previous build I had 6 months ago". I was confused why he had this question in the first place at all.
from pnpm.
But after reading your comments and check the pnpm document I feel they are not exactly equivalent because pnpm dectects whether it is in CI or not automatically and it is not in CI environment it will still proceed and install according to the lock file(my confusion in the first place).
Incorrect. While pnpm install
(without --frozen-lockfile
) tries to detect whether the environment is a CI, pnpm install --frozen-lockfile
doesn't. --frozen-lockfile
always fails if lockfile is outdated or isn't present.
In short, pnpm install
is equivalent to npm install
(but with an extra feature to detect CI), but pnpm install --frozen-lockfile
is equivalent to npm ci
.
from pnpm.
Related Issues (20)
- **/.env published to npm by default.
- Add Output option --reporter to help of pnpm import
- Race condition in "@zkochan/cmd-shim" produces corrupted bin scripts HOT 2
- Set destination filename with pnpm pack
- `cd` command failed on Windows with `shell-emulator=true` in `.npmrc`
- `pnpm install --silent` hangs if some deps can't be satisfied
- Wrong tag stated in `pnpm publish` output
- `pnpm licenses ls` does not list optionalDependencies of dependencies HOT 2
- `corepack pnpm@<version>` doesn't work anymore. HOT 4
- `ERR_PNPM_OTHER_PM_EXPECTED This project is configured to use yarn` while installing git-hosted package
- Broken bin scripts in Windows HOT 1
- require() does not work for optionalDependencies HOT 1
- Add a `use-pnpm-version` option to .npmrc to specify a project-specific version and use it automatically HOT 4
- Absolute paths in pnpm-lock.yml when using resolutions HOT 3
- Very slow interactive upgrade on linux HOT 2
- Running `pnpm install` over a broken lockfile results in dependencies getting upgraded to latest in range when removing `node_modules` beforehand HOT 2
- load_code_signature: embedded signature doesn't match attached signature HOT 1
- "pnpm install" or "pnpm install --offline" deletes or modifies files from the .pnpm-store HOT 1
- Hoist options won't hoist workspace packages in a monorepo HOT 4
- Error when pnpm exec pwd not at root dir 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 pnpm.