mirror of
https://github.com/Mintplex-Labs/langchainjs.git
synced 2026-07-01 12:17:38 -04:00
Fix issues with yarn berry stuck during yarn add
This commit is contained in:
@@ -16,7 +16,10 @@ cp -r ../root/.yarn/!(berry|cache) ./.yarn
|
||||
cp ../root/yarn.lock ../root/.yarnrc.yml .
|
||||
|
||||
# Replace the workspace dependency with the local copy, and install all others
|
||||
yarn add ../langchain
|
||||
# Avoid calling "yarn add ../langchain" as yarn berry does seem to hang for ~30s
|
||||
# before installation actually occurs
|
||||
sed -i 's/"langchain": "workspace:\*"/"langchain": "..\/langchain"/g' package.json
|
||||
yarn install --no-immutable
|
||||
|
||||
# Check the build command completes successfully
|
||||
yarn build
|
||||
|
||||
Reference in New Issue
Block a user