FAQ
Q: Yarn Install Failure due to Missing Python 'distutils' Module in Python 3.12
A: If you're encountering a failure during yarn install due to the absence of the 'distutils' module in Python 3.12, follow these steps to resolve the issue:
Run Our Fix Script:
We have developed a fix script that can automatically detect and resolve potential issues related to this error.
To run the script, execute
node setup\fix.jsin your terminal.This script will attempt to rectify the issue and prepare your environment for a successful
yarn install.
Manually Install 'setuptools':
If you prefer a manual approach or if the script does not resolve the issue, you can install the 'setuptools' module using pip.
Run the command
pip install setuptoolsin your terminal.'setuptools' is a collection of enhancements to the Python
distutilsthat allow for easier building and distribution of Python packages, and it should help resolve the missing module issue.
Retry Yarn Install:
After applying the fix, run
yarn installagain in your project directory.
Q: .pnp.cjs error
A: This error typically occurs when there is a .pnp.cjs file located in a parent folder (like /.yarn) that conflicts with Omnitool's operations. To resolve this issue, follow these steps:
Locate the
.pnp.cjsFile:Check the parent directories of your Omnitool project for a
.pnp.cjsfile. This file is often found in a/.yarnfolder.
Resolve the Conflict:
Option 1: Delete the
.pnp.cjsFileIf this file is not required for other projects, you can safely delete it.
Be cautious and ensure that removing this file does not affect other projects relying on it.
Option 2: Clone Omnitool in a Different Folder
If the
.pnp.cjsfile is needed for other projects, consider cloning your Omnitool repository into a different directory where no.pnp.cjsfile exists in any parent folders.
Re-Run Omnitool
Q: `Permisson Denied' Error on node_modules
A: To resolve this issue, follow these steps:
Remove the Existing
node_modulesDirectory:Run the command
sudo rm -rf node_modulesin your project's root directory.This command forcefully removes the existing
node_modulesdirectory and all of its contents.
Reinstall Dependencies:
After successfully removing the
node_modulesdirectory, runyarn installto reinstall all your project dependencies.This command will create a new
node_modulesdirectory with the correct permissions and all the necessary modules based on your project'spackage.jsonandyarn.lockfiles.
Last updated
Was this helpful?