I have followed the instruction of the BUILD.MD and installed the node.js. When I download the source code from github, I use the npm install
in the powershell windown with administrator rights. But it appears the errors like this:
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Lenovo\AppData\Roaming\npm-cache\_logs\2021-09-23T11_02_25_587Z-debug.log
lerna ERR! npm install exited 1 in '@joplin/renderer'
lerna WARN complete Waiting for 3 child processes to exit. CTRL-C to exit immediately.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! root@ bootstrap: `lerna bootstrap --force-local --no-ci`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the root@ bootstrap script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Lenovo\AppData\Roaming\npm-cache\_logs\2021-09-23T11_02_26_677Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! root@ postinstall: `npm run bootstrap --no-ci && npm run build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the root@ postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Lenovo\AppData\Roaming\npm-cache\_logs\2021-09-23T11_02_26_757Z-debug.log
And also it reminds that it can not find files in joplin/packages/renderer/node_packages, I have tried a lot of methods to solve this problem, including clean the npm cache and add global variables, but it doesn't work. So I hope my friend here who met this question can help me figure it out ! Thanks!
Add some information. There is some remind of git error in the log, but I don't find crrorect way to solve it.
npm ERR! code 1
npm ERR! Command failed: git submodule update -q --init --recursive
npm ERR! D:/Git/Git/mingw64/libexec/git-core\git-submodule: line 7: basename: command not found
npm ERR! D:/Git/Git/mingw64/libexec/git-core\git-submodule: line 7: sed: command not found
npm ERR! D:/Git/Git/mingw64/libexec/git-core\git-submodule: line 22: .: git-sh-setup: file not found