Giter Site home page Giter Site logo

nowa-gui's Introduction

homepage

https://nowa-webpack.github.io/

articles

usage

images







setup

npm install -r http://registry.npm.taobao.org

in another terminal

if you firstly run this project, please run it at first.

npm run dev:dll

don't forget to modify the file node_modules/rc/index.js:

// if(!module.parent) {
//   console.log(
//     JSON.stringify(module.exports(process.argv[2]), false, 2)
//   )
// }

then run

npm run dev:renderer
npm run dev:main
npm start

pack app

npm run build
  • in mac
npm run pack:mac
  • in windows
npm run pack:win
  • in linux
npm run pack:linux

nowa-gui's People

Contributors

afc163 avatar dependabot[bot] avatar gbk avatar jirapo avatar tommytroylin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nowa-gui's Issues

最新 nowa-template-salt 出错

Router.js:47Uncaught TypeError: Cannot read property 'location' of undefined
使用GUI 工具启动项目正在,但是 "nowa server” 进首页出现该错误

LICENSE?

Awesome project!
Please add license to the project thanks!

始终安装不上 win7 64位 ,环境变量正确

[2017-08-14 16:44:59:0478] [error] clear log main
[2017-08-14 16:45:05:0134] [error] app ready
[2017-08-14 16:45:06:0210] [error] port:30000
[2017-08-14 16:46:08:0631] [error] clear log main
[2017-08-14 16:46:08:0878] [error] app ready
[2017-08-14 16:46:09:0277] [error] port:30000
[2017-08-14 16:51:50:0793] [error] clear log main
[2017-08-14 16:51:51:0068] [error] app ready
[2017-08-14 16:51:51:0467] [error] port:30000

报错日志

.bash_profile 覆盖 path

mac :每次启动会启用 .bash_profile ,之前有配过 .profile 的话 会被重写,导致配过的 path 失效,请先检查下 PATH 。

报错

22733 verbose unbuild rmStuff [email protected] from /Users/wy/.nowa-gui/installation/node_modules
22734 info lifecycle [email protected]~postuninstall: [email protected]
22735 silly unbuild [email protected]
22736 info lifecycle [email protected]~preuninstall: [email protected]
22737 info lifecycle [email protected]~uninstall: [email protected]
22738 verbose unbuild rmStuff [email protected] from /Users/wy/.nowa-gui/installation/node_modules
22739 verbose unbuild rmStuff in /Users/wy/.nowa-gui/installation/node_modules/nowa-server/node_modules/url-loader/node_modules
22740 info lifecycle [email protected]~postuninstall: [email protected]
22741 silly unbuild [email protected]
22742 info lifecycle [email protected]~preuninstall: [email protected]
22743 info lifecycle [email protected]~uninstall: [email protected]
22744 verbose unbuild rmStuff [email protected] from /Users/wy/.nowa-gui/installation/node_modules
22745 verbose unbuild rmStuff in /Users/wy/.nowa-gui/installation/node_modules/nowa-server/node_modules/stylus-loader/node_modules
22746 silly gentlyRm parent.path = /Users/wy/.nowa-gui/installation/node_modules/nowa-server/node_modules/stylus-loader/node_modules/stylus
22747 silly gentlyRm parent.managed = false
22748 silly gentlyRm target.path =  /Users/wy/.nowa-gui/installation/node_modules/nowa-server/node_modules/stylus-loader/node_modules/.bin/stylus
22749 silly gentlyRm target.symlink = ../../../[email protected]@stylus/bin/stylus
22750 silly gentlyRm target.managed = false
22751 silly gentlyRm target.inParent =  false
22752 info gentlyRm /Users/wy/.nowa-gui/installation/node_modules/nowa-server/node_modules/stylus-loader/node_modules/stylus is not contained in any diretory npm is known to control or any place they link to
22753 silly unbuild [email protected]
22754 info lifecycle [email protected]~preuninstall: [email protected]
22755 info lifecycle [email protected]~uninstall: [email protected]
22756 verbose unbuild rmStuff [email protected] from /Users/wy/.nowa-gui/installation/node_modules
22757 verbose unbuild rmStuff in /Users/wy/.nowa-gui/installation/node_modules/nowa-server/node_modules/less-loader/node_modules
22758 silly gentlyRm parent.path = /Users/wy/.nowa-gui/installation/node_modules/nowa-server/node_modules/less-loader/node_modules/less
22759 silly gentlyRm parent.managed = false
22760 silly gentlyRm target.path =  /Users/wy/.nowa-gui/installation/node_modules/nowa-server/node_modules/less-loader/node_modules/.bin/lessc
22761 silly gentlyRm target.symlink = ../../../[email protected]@less/bin/lessc
22762 silly gentlyRm target.managed = false
22763 silly gentlyRm target.inParent =  false
22764 info gentlyRm /Users/wy/.nowa-gui/installation/node_modules/nowa-server/node_modules/less-loader/node_modules/less is not contained in any diretory npm is known to control or any place they link to
22765 silly unbuild [email protected]
22766 info lifecycle [email protected]~preuninstall: [email protected]
22767 info lifecycle [email protected]~uninstall: [email protected]
22768 verbose unbuild rmStuff [email protected] from /Users/wy/.nowa-gui/installation/node_modules
22769 verbose unbuild rmStuff in /Users/wy/.nowa-gui/installation/node_modules/nowa-lib/node_modules/babel-loader/node_modules
22770 silly gentlyRm parent.path = /Users/wy/.nowa-gui/installation/node_modules/nowa-lib/node_modules/babel-loader/node_modules/webpack
22771 silly gentlyRm parent.managed = false
22772 silly gentlyRm target.path =  /Users/wy/.nowa-gui/installation/node_modules/nowa-lib/node_modules/babel-loader/node_modules/.bin/webpack
22773 silly gentlyRm target.symlink = ../../../[email protected]@webpack/bin/webpack.js
22774 silly gentlyRm target.managed = false
22775 silly gentlyRm target.inParent =  false
22776 info gentlyRm /Users/wy/.nowa-gui/installation/node_modules/nowa-lib/node_modules/babel-loader/node_modules/webpack is not contained in any diretory npm is known to control or any place they link to
22777 silly unbuild [email protected]
22778 info lifecycle [email protected]~preuninstall: [email protected]
22779 info lifecycle [email protected]~uninstall: [email protected]
22780 verbose unbuild rmStuff [email protected] from /Users/wy/.nowa-gui/installation/node_modules
22781 verbose unbuild rmStuff in /Users/wy/.nowa-gui/installation/node_modules/nowa-lib/node_modules/babel-loader/node_modules
22782 info lifecycle [email protected]~postuninstall: [email protected]
22783 silly unbuild [email protected]
22784 info lifecycle [email protected]~preuninstall: [email protected]
22785 info lifecycle [email protected]~uninstall: [email protected]
22786 verbose unbuild rmStuff [email protected] from /Users/wy/.nowa-gui/installation/node_modules
22787 verbose unbuild rmStuff in /Users/wy/.nowa-gui/installation/node_modules/nowa-build/node_modules
22788 silly gentlyRm parent.path = /Users/wy/.nowa-gui/installation/node_modules/nowa-build/node_modules/mkdirp
22789 silly gentlyRm parent.managed = false
22790 silly gentlyRm target.path =  /Users/wy/.nowa-gui/installation/node_modules/nowa-build/node_modules/.bin/mkdirp
22791 silly gentlyRm target.symlink = ../../../[email protected]@mkdirp/bin/cmd.js
22792 silly gentlyRm target.managed = false
22793 silly gentlyRm target.inParent =  false
22794 info gentlyRm /Users/wy/.nowa-gui/installation/node_modules/nowa-build/node_modules/mkdirp is not contained in any diretory npm is known to control or any place they link to
22795 verbose unlock done using /Users/wy/.npm/_locks/staging-d1d60b02c1751a0b.lock for /Users/wy/.nowa-gui/installation/node_modules/.staging
22796 warn enoent ENOENT: no such file or directory, open '/Users/wy/.nowa-gui/installation/package.json'
22797 verbose enoent This is related to npm not being able to find a file.
22798 warn [email protected] requires a peer of react@^15.6.1 but none was installed.
22799 warn installation No description
22800 warn installation No repository field.
22801 warn installation No README data
22802 warn installation No license field.
22803 verbose stack Error: Refusing to delete /Users/wy/.nowa-gui/installation/node_modules/nowa-build/node_modules/.bin/mkdirp: containing path /Users/wy/.nowa-gui/installation/node_modules/nowa-build/node_modules/mkdirp isn't under npm's control
22803 verbose stack     at clobberFail (/Applications/NowaGUI.app/Contents/Resources/app/node_modules/npm/lib/utils/gently-rm.js:151:12)
22803 verbose stack     at isSafeToRm (/Applications/NowaGUI.app/Contents/Resources/app/node_modules/npm/lib/utils/gently-rm.js:111:15)
22803 verbose stack     at /Applications/NowaGUI.app/Contents/Resources/app/node_modules/npm/lib/utils/gently-rm.js:84:5
22803 verbose stack     at LOOP (/Applications/NowaGUI.app/Contents/Resources/app/node_modules/npm/node_modules/slide/lib/chain.js:7:26)
22803 verbose stack     at /Applications/NowaGUI.app/Contents/Resources/app/node_modules/npm/node_modules/slide/lib/chain.js:18:7
22803 verbose stack     at /Applications/NowaGUI.app/Contents/Resources/app/node_modules/npm/lib/utils/gently-rm.js:204:16
22803 verbose stack     at /Applications/NowaGUI.app/Contents/Resources/app/node_modules/npm/node_modules/iferr/index.js:13:50
22803 verbose stack     at cb (/Applications/NowaGUI.app/Contents/Resources/app/node_modules/npm/node_modules/slide/lib/async-map.js:47:24)
22803 verbose stack     at /Applications/NowaGUI.app/Contents/Resources/app/node_modules/npm/lib/utils/gently-rm.js:181:16
22803 verbose stack     at /Applications/NowaGUI.app/Contents/Resources/app/node_modules/npm/node_modules/iferr/index.js:11:16
22803 verbose stack     at /Applications/NowaGUI.app/Contents/Resources/app/node_modules/npm/node_modules/iferr/index.js:11:16
22803 verbose stack     at /Applications/NowaGUI.app/Contents/Resources/app/node_modules/npm/node_modules/iferr/index.js:11:16
22803 verbose stack     at /Applications/NowaGUI.app/Contents/Resources/app/node_modules/npm/node_modules/graceful-fs/polyfills.js:284:29
22803 verbose stack     at FSReqWrap.oncomplete (fs.js:112:15)
22804 verbose cwd /Users/wy/.nowa-gui/installation
22805 verbose Darwin 16.5.0
22806 verbose argv "/Applications/NowaGUI.app/Contents/Frameworks/NowaGUI Helper.app/Contents/MacOS/NowaGUI Helper" "/Applications/NowaGUI.app/Contents/Resources/app/node_modules/npm/bin/npm-cli.js" "install" "nowa-build@^1" "-S" "--no-optional" "-registry=http://registry.npm.taobao.org" "-loglevel=warn" "--scripts-prepend-node-path=auto"
22807 verbose node v7.4.0
22808 verbose npm  v5.3.0
22809 error path /Users/wy/.nowa-gui/installation/node_modules/nowa-build/node_modules/.bin/mkdirp
22810 error code EEXIST
22811 error Refusing to delete /Users/wy/.nowa-gui/installation/node_modules/nowa-build/node_modules/.bin/mkdirp: containing path /Users/wy/.nowa-gui/installation/node_modules/nowa-build/node_modules/mkdirp isn't under npm's control
22812 error File exists: /Users/wy/.nowa-gui/installation/node_modules/nowa-build/node_modules/.bin/mkdirp
22813 error Move it away, and try again.
22814 verbose exit [ 1, true ]

dingyou-dingtalk-mobile 模板不可用

不管是V2 还是V3 版本直接编译都报错
Error: Cannot find module 'webpack/lib/removeAndDo'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
at Function.Module._load (internal/modules/cjs/loader.js:520:25)
at Module.require (internal/modules/cjs/loader.js:650:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (C:\Users\xadfd\.nowa\install_extract-text-webpack-plugin@1.0.1@extract-text-webpack-plugin\ExtractedModule.js:30:42)
at Module._compile (internal/modules/cjs/loader.js:702:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
at Module.load (internal/modules/cjs/loader.js:612:32)
at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
at Function.Module._load (internal/modules/cjs/loader.js:543:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: nowa build -e index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

使用脚手架引入svg图片报错

脚手架:nowa-template-salt
地址:https://github.com/nowa-webpack/template-salt
本来是想使用@svgr/webpack的,不知道怎么配。
image
不知道配得对不。
关键是一引入svg就报错
webpack: Compiled successfully.
webpack: Compiling...
webpack building...
events.js:167
throw er; // Unhandled 'error' event
^

TypeError: Cannot read property 'replace' of undefined
at C:\Users\Administrator.nowa-gui\installation\node_modules.npminstall_svg2react-loader@1.0.3@svg2react-loader\util\sanitize.js:31:31
at Array.forEach ()
at sanitizeStyleNodes (C:\Users\Administrator.nowa-gui\installation\node_modules.npminstall_svg2react-loader@1.0.3@svg2react-loader\util\sanitize.js:28:11)
at C:\Users\Administrator.nowa-gui\installation\node_modules.npminstall_svg2react-loader@1.0.3@svg2react-loader\util\sanitize.js:97:17
at Array.forEach ()
at sanitize (C:\Users\Administrator.nowa-gui\installation\node_modules.npminstall_svg2react-loader@1.0.3@svg2react-loader\util\sanitize.js:90:64)
at C:\Users\Administrator.nowa-gui\installation\node_modules.npminstall_svg2react-loader@1.0.3@svg2react-loader\util\sanitize.js:55:13
at Array.forEach ()
at sanitize (C:\Users\Administrator.nowa-gui\installation\node_modules.npminstall_svg2react-loader@1.0.3@svg2react-loader\util\sanitize.js:54:17)
at C:\Users\Administrator.nowa-gui\installation\node_modules.npminstall_svg2react-loader@1.0.3@svg2react-loader\util\sanitize.js:100:17
Emitted 'error' event at:
at Parser.exports.Parser.Parser.parseString (C:\Users\Administrator.nowa-gui\installation\node_modules.npminstall_xml2js@0.4.19@xml2js\lib\parser.js:326:16)
at Parser.parseString (C:\Users\Administrator.nowa-gui\installation\node_modules.npminstall_xml2js@0.4.19@xml2js\lib\parser.js:5:59)
at render (C:\Users\Administrator.nowa-gui\installation\node_modules.npminstall_svg2react-loader@1.0.3@svg2react-loader\index.js:69:19)
at C:\Users\Administrator.nowa-gui\installation\node_modules.npminstall_svg2react-loader@1.0.3@svg2react-loader\index.js:18:9
at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: nowa server
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

nowa按需加载

nowa搭建的用来开发钉钉应用,webpack默认是1.15.0版本,可以升级吗?如果不升级按需加载是如何实现呢?

nowa编译报错

C:\Users\lenovo.nowa-gui\installation\node_modules.npminstall_npm@7.16.0@npm\lib\cli.js:40
npm.load(async er => {
^^^^^
SyntaxError: missing ) after argument list
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (C:\Users\lenovo.nowa-gui\installation\node_modules.npminstall_npm@7.16.0@npm\bin\npm-cli.js:2:1)
at Module._compile (module.js:570:32)

怎样增加源地址?

由于本地有npm仓库,需要安装本地仓库里的一些依赖,所以要设置本地的源地址,目前是无法设置的。

尝试在 /src/renderer/models/setting.js/src/main/userConfig.js 里修改了 registryList ,增加了本地的源地址,然后重新编译,重启项目重启electron,依然是默认的那3个源地址,修改了全局源地址也不生效,反复试了几次都不行。

/src/renderer/models/setting.js

...

export default {
  namespace: 'setting',

  state: {
    defaultEditor: getLocalEditor() || SUBLIME,   // 默认编辑器
    editor: {       // 编辑器列表
      [SUBLIME]: getLocalEditorPath(SUBLIME),
      [VSCODE]: getLocalEditorPath(VSCODE),
      [WEBSTORM]: getLocalEditor(WEBSTORM),
    },
    registry: 'http://192.168.10.10:4873',  //全局源地址
    registryList: [
      'http://192.168.10.10:4873',
      'http://registry.npm.taobao.org',
      'http://registry.npmjs.org',
      'http://registry.npm.alibaba-inc.com',
    ],     //所有源地址列表
    lang: getLocalLanguage(), //当前语言
  },

...

/src/main/userConfig.js

...

const registryList = [
  'http://192.168.10.10:4873',
  'http://registry.npm.taobao.org',
  'http://registry.npmjs.org',
  'http://registry.npm.alibaba-inc.com',
];

...

无法编译、启动项目了,很绝望

image
已经卸载重新安装了,nodejs/nowa gui,全都卸载过,新建一个模板,编译,报错。
很绝望。
下面是错误信息:

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'run',
1 verbose cli   'build',
1 verbose cli   '--scripts-prepend-node-path=auto' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle [email protected]~prebuild: [email protected]
6 info lifecycle [email protected]~build: [email protected]
7 verbose lifecycle [email protected]~build: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~build: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\Admin\NowaProject\Test\node_modules\.bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Users\Admin\AppData\Local\Microsoft\WindowsApps;C:\Users\Admin\AppData\Local\Programs\nowa-gui-version\resources\app\nodes;C:\Users\Admin\.nowa-gui\installation\node_modules\.bin;C:\Users\Admin\AppData\Local\Programs\nowa-gui-version\resources\app\node_modules\.bin;C:\Users\Admin\AppData\Roaming\npm;C:\Users\Admin\.nowa-gui\installation\node_modules\.bin;C:\Users\Admin\AppData\Local\Programs\nowa-gui-version\resources\app\nodes;C:\Users\Admin\AppData\Local\Programs\nowa-gui-version\resources\app\node_modules\.bin
9 verbose lifecycle [email protected]~build: CWD: C:\Users\Admin\NowaProject\Test
10 silly lifecycle [email protected]~build: Args: [ '/d /s /c', 'nowa build' ]
11 silly lifecycle [email protected]~build: Returned: code: 1  signal: null
12 info lifecycle [email protected]~build: Failed to exec build script
13 verbose stack Error: [email protected] build: `nowa build`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:304:16)
13 verbose stack     at EventEmitter.emit (events.js:182:13)
13 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:182:13)
13 verbose stack     at maybeClose (internal/child_process.js:961:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
14 verbose pkgid [email protected]
15 verbose cwd C:\Users\Admin\NowaProject\Test
16 verbose Windows_NT 10.0.17134
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build" "--scripts-prepend-node-path=auto"
18 verbose node v10.5.0
19 verbose npm  v6.1.0
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] build: `nowa build`
22 error Exit status 1
23 error Failed at the [email protected] build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

nowa deploy 安装报错

Installing nowa-deploy ...
✖ Install fail! Error: [[email protected] › @ali/def-pub-client@^2] GET https://registry.npm.taobao.org/@ali%2Fdef-pub-client/%3E%3D2.0.0%20%3C3.0.0 response 405 status
Error: [[email protected] › @ali/def-pub-client@^2] GET https://registry.npm.taobao.org/@ali%2Fdef-pub-client/%3E%3D2.0.0%20%3C3.0.0 response 405 status
at get (/Users/jonoboru/xushang/.nvm/versions/node/v14.17.6/lib/node_modules/nowa/node_modules/npminstall/lib/get.js:51:17)
at get.next ()
at onFulfilled (/Users/jonoboru/xushang/.nvm/versions/node/v14.17.6/lib/node_modules/nowa/node_modules/co/index.js:65:19)
at processTicksAndRejections (internal/process/task_queues.js:95:5)

给官网的建议

官网找不到一个“源码”链接,我感到无所适从压力很大。。。

建议

1.在命令集中点击“删除”,希望能够提示“确认是否删除?”,以防错误操作
2.在命令集中新增“重新启动“按钮,现在是要先停止再启动(操作略麻烦)
3.界面四周加上边框或者阴影,全白的底色有时会和页面分不清楚(这点很让我头疼,操作难受)
4.依赖管理中添加“搜索功能”,特别是dev的依赖过多时真心不好查看

以上的建议望采纳,希望nowa越来越好,加油!

初始化错误

初始化报错“Unexpected token < in JSON at position 0”

首次体验反馈:

  1. 创建一个项目后, 再次新建, 找不到模板
  2. 删除创建项目后, 同上,也找不到;

其他建议

  1. 如何自定义模板放在自定义位置.可以上传下载管理? 私有空间/github/nowa空间
    nowa空间用来分享的.

  2. 项目可以打开编辑器,(搜索可用编辑器/自行添加, 设置默认编辑器)

  3. 项目可以设置关联wiki (私有/github/nowa的), 并且有钉钉版本,便于移动端了解问题和回复.

  4. 项目的环境配置(可以自行编辑abc.json/webpack,也可以gui管理abc.json/ webpack的配置.

  5. 脚手架的位置有支持2个(本地和远程), 默认优先本地,使用测试通过后,可以git提交.(现在的太麻烦了. 脚手架修改了,如果不懂修改设置,等一天才能down新的)

can't reopen main window on macOS

1.9.8 (and all previous version

reproduce procedure:

  1. Open GUI
  2. Click red X button on top left
  3. Click remaining GUI icon on macOS dock
  4. Nothing happened (should reopen the main window

nowa server 命令报错:ERROR in Cannot find module 'babel-core'

我在本地一直是使用的Nowa-gui进行编译运行,现在想要把应用发布到服务器上,但是一直找不到相关的文档,就将代码整体上传了。服务器环境是:
Red Hat 4.8.5-28
Nowa 1.2.2

本地运行 nowa server是完全正常的,但是在服务器运行nowa server命令出现了以下错误:

-bash-4.2$ nowa server

  Nowa GUI for all platform is available now!
  You can download it here:
  https://nowa-webpack.github.io/

webpack built 28f0d8edebdfbbdbdfc7 in 317ms
Hash: 28f0d8edebdfbbdbdfc7
Version: webpack 1.15.0
Time: 317ms
    Asset       Size  Chunks       Chunk Names
   app.js     273 kB       0       app
  home.js  411 bytes       1       home
search.js  417 bytes       2       search
upload.js  417 bytes       3       upload

ERROR in Cannot find module 'babel-core'
 @ multi app

ERROR in Cannot find module 'babel-core'
 @ multi home

ERROR in Cannot find module 'babel-core'
 @ multi search

ERROR in Cannot find module 'babel-core'
 @ multi upload
webpack: Failed to compile.

除此之外执行nowa build也会出现

module.js:478
    throw err;
    ^

Error: Cannot find module 'webpack/lib/removeAndDo'
    at Function.Module._resolveFilename (module.js:476:15)
    at Function.Module._load (module.js:424:25)
    at Module.require (module.js:504:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/cloud/.nowa/install/[email protected]@extract-text-webpack-plugin/ExtractedModule.js:30:42)
    at Module._compile (module.js:577:32)
    at Object.Module._extensions..js (module.js:586:10)
    at Module.load (module.js:494:32)
    at tryModuleLoad (module.js:453:12)
    at Function.Module._load (module.js:445:3)

请问要怎么解决呢?我反复检查了本地和服务器代码应该是没有区别的,甚至将node_modules文件夹一并上传了

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.