-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,7 +110,7 @@ respect the provided `workspace` configuration. | |
|
||
### Using workspaces | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
Given the [specifities of how Node.js handles module resolution](https://nodejs.org/dist/latest-v14.x/docs/api/modules.html#modules_all_together) it's possible to consume any defined workspace | ||
This comment has been minimized.
Sorry, something went wrong.
Sarakbe
|
||
Given the [specifics of how Node.js handles module resolution](https://nodejs.org/dist/latest-v14.x/docs/api/modules.html#modules_all_together) it's possible to consume any defined workspace | ||
by its declared `package.json` `name`. Continuing from the example defined | ||
above, let's also create a Node.js script that will require the workspace `a` | ||
example module, e.g: | ||
|
installs NVM (Node Version Manager)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
download and install Node.js
nvm install 20
verifies the right Node.js version is in the environment
node -v # should print
v20.12.1
verifies the right NPM version is in the environment
npm -v # should print
10.5.0