Comments (3)
@prappo Which version of bozon are you using?
from bozon.
I met the same issue. with windows 10 64bit. bozon version is 0.5.4.
from bozon.
I have found the root cause for my case. There are two main issue in may case.
- NODE_PATH.
When I run gulp directly, it report that can't find bozon/lib/building/tasks. But I have install the bozon globally. From http://stackoverflow.com/questions/9587665/nodejs-cannot-find-installed-module-on-windows, I set the NODE_PATH, it works when rungulp prepare:app --platform=windows --env=development
directly. - child_process.spawnSync may run the wrong command.
In my node_module.bin, there is only gulp and gulp.cmd, electron and electron.cmd. no gulp.exe and electron.exe. I am not sure whether there is the exe files in other nodejs versions. From the issue of node: nodejs/node-v0.x-archive#2318 , node will automatically add.exe
after the command. I try to add.cmd
follow the command directly. script of bozon\lib\utiles\bozon.js like this:
spawnSync: function (command, options) {
return childProcess.spawnSync(command + ".cmd", options, {
shell: true,
stdio: 'inherit'
})
},
It works for me now. This only works for windows and will break other platform. There is a solution for cross-spawn https://github.com/IndigoUnited/node-cross-spawn. I think bozon should use this module instead of child_process.spawnSync.
from bozon.
Related Issues (20)
- Use template-literal instead of EJS HOT 1
- Updates needed HOT 1
- Where modules for app/javascripts/main/index.js supposed to go? HOT 1
- How to add a new script for build for armv7l
- Debugging in DevTools HOT 1
- I updates Bozon, now nothing works anymore HOT 1
- Not working the NativeImage class static functions HOT 3
- Webpack config: is there a way to add more than two section(renderer,main) in the webpack.config.js? HOT 1
- Found 2 vulnerabilities (1 moderate, 1 high) after installed bozon HOT 1
- ModuleNotFoundError: dependency already declared in package.json not usable HOT 7
- No reloading for webpack HOT 2
- CSS not rendering properly HOT 8
- Bozon upgrade from v0.8.12 to v1.0.5 - bug issue HOT 4
- Node version not LTS HOT 1
- Create Environment specific package with latest Bozon
- SyntaxError while running bozon start -r on Win10. HOT 1
- execute a script HOT 1
- Loading custom html with custom script HOT 1
- packaging application with native modules HOT 1
- how to include native module and usage of it in correct way. (newby question)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bozon.