Node Note
Node CLI#
- @2021-11-10
- Node CLI(JS)
- @2021-11-11
- Node.js
- Node with
TS
- yargs for CLI
- Permission denied yarn/npm link
- #TODO Should write what I learned
Node 17 compatibility with CRA#
- @2021-12-10
- Errors were about
node_modules\postcss\package.json
- Answer
- this answer in Error ERR_PACKAGE_PATH_NOT_EXPORTED: Package subpath './lib/tokenize' is not defined by "exports" in the package.json of a module in node_modules
- Also see check the link in the comment of the answer workaround
Yarn unmet peer dependency#
- @2021-12-30
- This is so frequently asked, hence it's hard to find a good answer, so I note it down here.
- peer dependency is a week dependency, written in
package.json
,peerDependency
and is not installed byyarn install
(because the developer of the package decided so). - Reason here from yarnpkg/yarn:
Situation:
- Your app directly depends on modules
A
andC
- Module
A
directly depends on moduleB
- Module
C
has peer dependency on moduleB
Outcome:
- Yarn throws warnings into the console about peer dependency
B
being unmet for moduleC
, NPM does not.
- Your app directly depends on modules