Closed blakeglucas closed 1 year ago
Sorry for outdated documents.
Upgrade your Node.js to 16+, everything should be fine.
Minimum Node.js required:
For npm workspaces, you need at least npm v7.0.0, which was released alongside Node.js v15.0.0. So, to use npm workspaces, you should have at least Node.js v15.0.0 installed.
Also, I will update package.json
and development docs to reflect this.
Thanks for the quick response, upgrading Node to 16 worked on the Ubuntu systems. Unfortunately I'm still running in to build issues on Windows, specifically with the build/prebuild-dev.sh
script:
> npm run prebuild-dev
> snapmaker-luban@4.7.1 prebuild-dev
> bash build/prebuild-dev.sh
build/prebuild-dev.sh: line 3: node: command not found
> snapmaker-luban@4.7.1 pkgsync
> node build/pkgsync.js
/mnt/c/.../Luban/src /mnt/c/.../Luban
/mnt/c/.../Luban/node_modules/.bin/cross-env: 11: exec: node: Permission denied
/mnt/c/.../Luban/node_modules/.bin/cross-env: 11: exec: node: Permission denied
/mnt/c/.../Luban
Copying print settings...
Copying other resources..
The /mnt/c/
lines seem to indicate it's running WSL to match the shebang directive /bin/bash. Any ideas what's going on here? Could just be an issue with my system.
After running some of the prebuild commands manually, I was able to get the Windows build to work. I'll go ahead and close.
The
/mnt/c/
lines seem to indicate it's running WSL to match the shebang directive /bin/bash. Any ideas what's going on here? Could just be an issue with my system.
We didn't use Windows for our daily development. But yes if we do, we use WSL (v2) to run the bash script.
🐞 bug report
Affected Version(s)
Luban v4.7.1
Is this a regression? (optional)
Unknown
To Reproduce
Steps to reproduce the behavior:
nvm use 12.xx.yy
).npm install
npm run dev
, again per instructions.Exception or Error (optional)
Expected behavior According to the Development instructions, I'd expect a React Electron application to open. Instead it throws these errors and then continues building. The same error occurs after issuing
rs
command to nodemon or just runningnpm run start-dev
.I've tried adding
-r tsconfig-paths/register
to the gulp exec command, copying packages to theoutput/
directory, but nothing helps. I'd appreciate some updated developer documentation.🌍 Your Environment
Platform: