I found a good module for working with playcanvas on a local IDE, which facilitates both the development and work with the git.
However, I did not quite understand exactly where to create a config file and did not find step-by-step instructions.
Here are the steps I follow:
- clone the playcanvas-sync repository
- in root of playcanvas-sync folder in the terminal I enter “npm install -g”
Then I have an error “Error: Could not find any Visual Studio installation to use”, “You need to install the latest version of Visual Studio”. Is it required to install Visual Studio if I do not use it, but use, for example, websorm? - in the root (folder playcanvas-sync) I create a file “.pcconfig”
- I write something like that there:
{
"PLAYCANVAS_BRANCH_ID": "abc",
"PLAYCANVAS_PROJECT_ID": 10,
"PLAYCANVAS_TARGET_DIR": "/ Users / zpaul / proj1",
"PLAYCANVAS_API_KEY": "abc",
"PLAYCANVAS_BAD_FILE_REG": "^ \\. | ~ $",
"PLAYCANVAS_BAD_FOLDER_REG": "\\."
}
change “PLAYCANVAS_BRANCH_ID”, “PLAYCANVAS_PROJECT_ID” and “PLAYCANVAS_API_KEY” to my values.
in “PLAYCANVAS_TARGET_DIR” I write the path to the folder where potentially my project should be: “…/myProject”
and leave the fields “PLAYCANVAS_BAD_FILE_REG” and “PLAYCANVAS_BAD_FOLDER_REG” unchanged.
5) at the root of my project I initialize “npm init”, run “pcsync pullAll” and get an error: Cannot find module ‘…/…/build/Release/nsfw.node’ and nothing happens.
I will be grateful for the answer and explanation of what exactly I am doing wrong.