Coder Social home page Coder Social logo

fie's People

Contributors

firewash avatar hugohua avatar thejian 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

fie's Issues

安装qinniu套件时报错

? 请选择一个适合您项目的套件进行初始化: qnui - 基于QNUI的React+Redux+Next多页面应用解决方案

npminstall version: 2.30.1
npminstall args: E:\学习软件\Node\node.exe C:\Users\fengtao.fie\node_modules_npminstall@2.30.1@npminstall\bin\install.js --registry=http://registry.npm.taobao.org/ --china --stdio=inherit --cwd=E:\vs2012代码\fie-kdb-qinniu
'tnpm' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
[core-error] 运行报错, 请在这里反馈问题给 hugohua https://github.com/fieteam/fie/issues/new
Error: install error
at ChildProcess.spawn.on.on (C:\Users\fengtao.fie\node_modules_fie-npm@1.3.5@fie-npm\lib\index.js:53:18)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at ChildProcess.cp.emit (C:\Users\fengtao.fie\node_modules_cross-spawn@5.1.0@cross-spawn\lib\enoent.js:40:29)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)

fie start的时候报错

环境是win7
node v6.9.2
npm 3.10.9
fie v2.7.0

报错如下:



module.js:471
throw err;
^

Error: Cannot find module 'fstream'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (C:\Users\zc.fie\node_modules.2.2.1@tar\lib\entry.js:14:33)
at Module._compile (module.js:570:32)
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)
'tnpm' �����ڲ����ⲿ���Ҳ���ǿ����еij���
�������ļ�
[fie-error] 运行报错, 请在这里反馈问题给 @擎空 @宇果 https://github.com/fieteam/fie/issues/new
Error: install error
at ChildProcess.spawn.on.on (C:\Users\zc.fie\node_modules.1.3.5@fie-npm\lib\index.js:53:18)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at ChildProcess.cp.emit (C:\Users\zc.fie\node_modules.5.1.0@cross-spawn\lib\enoent.js:40:29)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)

alife、next套件运行命令出错


出现情况:

  1. next套件中使用: fie theme install 后 fie start 出错
  2. alife套件中使用 fie publish 出错
    目前存在的解决方法:
    用户删除项目中的node_modules并重新安装不会出现该错误

Leveraging `npm ci`

Npm team has introduced command npm ci with the latest npm released. Not only does it prevent possible corruptions of dependencies, but it also be able to install faster with the help of the package's lockfile.

It is expected that running fie ii would be able to generate a proper lockfile. Any ideas?

'tnpm' is not recognized as an internal or external command

$ fie start
[fie-task] 正在执行行start前置任务
copy files to build/lib done !
[fie-task] start前置任务执行成功
'tnpm' is not recognized as an internal or external command,
operable program or batch file.
[fie-error] 运行报错, 请在这里反馈问题给 @擎空 @宇果 https://github.com/fieteam/fie/issues/new
SyntaxError: Error parsing C:\Users\Loveapp.fie\node_modules_yargs@5.0.0@yargs\node_modules\string-width\package.json: Unexpected end of JSON input
at Object.parse (native)
at readPackage (module.js:92:52)
at tryPackage (module.js:102:13)
at Function.Module._findPath (module.js:186:20)
at Function.Module._resolveFilename (module.js:467:25)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (C:\Users\Loveapp.fie\node_modules_yargs@5.0.0@yargs\lib\usage.js:3:21)
at Module._compile (module.js:570:32)

端口

在docker的自定义镜像中运行
fie start时 一直提示端口占用,而实际上端口并没有被占用
image

升级QAP之后一直打不开debug 项目无法调试

qap debug error :

/Users/linyuanfeng/.fie/node_modules/_koa-bodyparser@4.2.1@koa-bodyparser/index.js:72
return async function bodyParser(ctx, next) {
^^^^^^^^

SyntaxError: Unexpected token function
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
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. (/Users/linyuanfeng/.fie/node_modules/_fie-toolkit-nuke@0.9.2@fie-toolkit-nuke/weex-devtool/lib/DebugServer.js:9:18)

//版本
node -v --> 6.11.2
npm -v --> 3.10.10

升级node版本到 v7.9.0 依然报错 已经确保了你们官方谁说的5.5.0至8.0.0版本区间
ebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.

  • configuration.entry should be one of these:
    object { : non-empty string | [non-empty string] } | non-empty string | [non-empty string] | function
    -> The entry point(s) of the compilation.
    Details:
    • configuration.entry should not be empty.
      -> Multiple entry bundles are created. The key is the chunk name. The value can be a string or an array.
    • configuration.entry should be a string.
      -> An entry point without name. The string is resolved to a module which is loaded upon startup.
    • configuration.entry should be an array:
      [non-empty string]
    • configuration.entry should be an instance of function
      -> A Function returning an entry object, an entry string, an entry array or a promise to these things.
      at webpack (/Users/linyuanfeng/.fie/node_modules/_webpack@4.19.1@webpack/lib/webpack.js:24:9)
      at checkList.then.result (/Users/linyuanfeng/.fie/node_modules/_fie-toolkit-nuke@0.9.2@fie-toolkit-nuke/lib/rx-server.js:109:28)
      at process._tickCallback (internal/process/next_tick.js:109:7)

fie start 后报compiled with warnings

我在使用fie start命令后,显示
WARNING in ./node_modules/_echarts@3.8.0@echarts/src/echarts.js
1963:4-18 "export '$inject' (imported as 'zrUtil') was not found in 'zrender/src
/core/util'
webpack: Compiled with warnings.
页面一直显示正在加载,请问这个什么原因怎么解决?

webpackHotDevClient.js' of undefined

MacBook-Pro:project2 zhoupeng$ qap debug
启动调试中...
Happy[js]: Version: 4.0.0. Threads: 6 (shared pool)
Happy[js]: All set; signaling webpack to proceed.
Happy[css]: Version: 4.0.0. Threads: 6 (shared pool)
Happy[css]: All set; signaling webpack to proceed.
Happy[less]: Version: 4.0.0. Threads: 6 (shared pool)
Happy[less]: All set; signaling webpack to proceed.
Happy[rxscss]: Version: 4.0.0. Threads: 6 (shared pool)
Happy[rxscss]: All set; signaling webpack to proceed.
Happy[json]: Version: 4.0.0. Threads: 6 (shared pool)
Happy[json]: All set; signaling webpack to proceed.
📦 building ...10.12%[fie-error] 运行报错, 请在这里反馈问题给 @擎空 @宇果 https://github.com/fieteam/fie/issues/new
TypeError: Cannot read property '/Users/zhoupeng/.fie/node_modules/_fie-toolkit-nuke@0.7.36@fie-toolkit-nuke/lib/hot-dev-utils/webpackHotDevClient.js' of undefined
at /Users/zhoupeng/.fie/node_modules/_rax-webpack-plugin@0.4.11@rax-webpack-plugin/lib/index.js:77:63
at handleExternals (/Users/zhoupeng/.fie/node_modules/_webpack@3.5.5@webpack/lib/ExternalModuleFactoryPlugin.js:70:16)
at /Users/zhoupeng/.fie/node_modules/_webpack@3.5.5@webpack/lib/ExternalModuleFactoryPlugin.js:83:5
at handleExternal (/Users/zhoupeng/.fie/node_modules/_webpack@3.5.5@webpack/lib/ExternalModuleFactoryPlugin.js:26:32)
at /Users/zhoupeng/.fie/node_modules/_webpack@3.5.5@webpack/lib/ExternalModuleFactoryPlugin.js:85:24
at handleExternals (/Users/zhoupeng/.fie/node_modules/_webpack@3.5.5@webpack/lib/ExternalModuleFactoryPlugin.js:82:5)
at /Users/zhoupeng/.fie/node_modules/_webpack@3.5.5@webpack/lib/ExternalModuleFactoryPlugin.js:83:5
at applyPluginsAsyncWaterfall (/Users/zhoupeng/.fie/node_modules/_webpack@3.5.5@webpack/lib/NormalModuleFactory.js:234:4)
at NormalModuleFactory.applyPluginsAsyncWaterfall (/Users/zhoupeng/.fie/node_modules/_tapable@0.2.8@tapable/lib/Tapable.js:260:70)
at NormalModuleFactory.create (/Users/zhoupeng/.fie/node_modules/_webpack@3.5.5@webpack/lib/NormalModuleFactory.js:218:8)
at _this.semaphore.acquire (/Users/zhoupeng/.fie/node_modules/_webpack@3.5.5@webpack/lib/Compilation.js:237:13)
at Semaphore.acquire (/Users/zhoupeng/.fie/node_modules/_webpack@3.5.5@webpack/lib/util/Semaphore.js:16:4)
at iteratorFactory (/Users/zhoupeng/.fie/node_modules/_webpack@3.5.5@webpack/lib/Compilation.js:235:20)
at /Users/zhoupeng/.fie/node_modules/_async@2.5.0@async/dist/async.js:3083:16
at eachOfArrayLike (/Users/zhoupeng/.fie/node_modules/_async@2.5.0@async/dist/async.js:1003:9)
at eachOf (/Users/zhoupeng/.fie/node_modules/_async@2.5.0@async/dist/async.js:1051:5)
(node:26564) DeprecationWarning: Chunk.modules is deprecated. Use Chunk.getNumberOfModules/mapModules/forEachModule/containsModule instead.

项目报错

MYJS @ )77J(G~7SFJLHQJF
在构建时报错,ENOENT: no such file or directory, open 'E:\text\package.json'

初始化fie init qnui报错

platform unsupported [email protected][email protected] › fsevents@^1.0.0 Package require os(darwin) not compatible with your platform(win32)
[fsevents@^1.0.0] optional install error: Package require os(darwin) not compati ble with your platform(win32)
Downloading binary from https://cdn.npm.taobao.org/dist/node-sass/v3.13.1/win32- x64-57_binding.node
Cannot download "https://cdn.npm.taobao.org/dist/node-sass/v3.13.1/win32-x64-57_ binding.node":

HTTP error 404 Not Found

Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.

  export HTTP_PROXY=http://example.com:1234

or configure npm proxy via

  npm config set proxy http://example.com:8080

Building: E:\学习软件\Node\node.exe E:\vs2012代码\kdb-qianniu\node_modules_node -gyp@3.7.0@node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_c flags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ 'E:\学习软件\Node\node.exe',
gyp verb cli 'E:\vs2012代码\kdb-qianniu\node_modules\[email protected]@node- gyp\bin\node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library=' ]
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb download using dist-url https://cdn.npm.taobao.org/dist/node
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb which failed Error: not found: python2
gyp verb which failed at getNotFoundError (E:\vs2012代码\kdb-qianniu\node
modules_which@1.3.1@which\which.js:13:12)
gyp verb which failed at F (E:\vs2012代码\kdb-qianniu\node_modules_which@ 1.3.1@which\which.js:68:19)
gyp verb which failed at E (E:\vs2012代码\kdb-qianniu\node_modules_which@ 1.3.1@which\which.js:80:29)
gyp verb which failed at E:\vs2012代码\kdb-qianniu\[email protected] .1@which\which.js:89:16
gyp verb which failed at E:\vs2012代码\kdb-qianniu\[email protected] .0@isexe\index.js:42:5
gyp verb which failed at E:\vs2012代码\kdb-qianniu\[email protected] .0@isexe\windows.js:36:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb which failed python2 { Error: not found: python2
gyp verb which failed at getNotFoundError (E:\vs2012代码\kdb-qianniu\node_ modules_which@1.3.1@which\which.js:13:12)
gyp verb which failed at F (E:\vs2012代码\kdb-qianniu\node_modules_which@ 1.3.1@which\which.js:68:19)
gyp verb which failed at E (E:\vs2012代码\kdb-qianniu\node_modules_which@ 1.3.1@which\which.js:80:29)
gyp verb which failed at E:\vs2012代码\kdb-qianniu\[email protected] .1@which\which.js:89:16
gyp verb which failed at E:\vs2012代码\kdb-qianniu\[email protected] .0@isexe\index.js:42:5
gyp verb which failed at E:\vs2012代码\kdb-qianniu\[email protected] .0@isexe\windows.js:36:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb which failed stack: 'Error: not found: python2\n at getNotFoundE rror (E:\vs2012代码\kdb-qianniu\node_modules\_which@1.3.1@which\which.js:13 :12)\n at F (E:\vs2012代码\kdb-qianniu\node_modules\_which@1.3.1@which\w hich.js:68:19)\n at E (E:\vs2012代码\kdb-qianniu\node_modules\[email protected]. 1@which\which.js:80:29)\n at E:\vs2012代码\kdb-qianniu\node_modules\_whi ch@1.3.1@which\which.js:89:16\n at E:\vs2012代码\kdb-qianniu\node_modules \_isexe@2.0.0@isexe\index.js:42:5\n at E:\vs2012代码\kdb-qianniu\node_mo dules\isexe@2.0.0@isexe\windows.js:36:5\n at FSReqWrap.oncomplete (fs.js:1 52:21)',
gyp verb which failed code: 'ENOENT' }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb which succeeded python E:\学习软件\python\python.EXE
gyp verb check python version E:\学习软件\python\python.EXE -c "import platform ; print(platform.python_version());" returned: "3.6.0\r\n"
gyp verb could not find "E:\学习软件\python\python.EXE". checking python launche r
gyp verb could not find "E:\学习软件\python\python.EXE". guessing location
gyp verb ensuring that file exists: C:\Python27\python.exe
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "E:\学习软件\python\python.EX E", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (E:\vs2012代码\kdb-qianniu\node
modules_node-gyp@3.7.0@node-gyp\lib\configure.js:492:19)
gyp ERR! stack at PythonFinder. (E:\vs2012代码\kdb-qianniu\node_m odules_node-gyp@3.7.0@node-gyp\lib\configure.js:517:16)
gyp ERR! stack at E:\vs2012代码\kdb-qianniu\[email protected] @graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "E:\学习软件\Node\node.exe" "E:\vs2012代码\kdb-qianniu\no de_modules\_node-gyp@3.7.0@node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "- -libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd E:\vs2012代码\kdb-qianniu\node_modules_node-sass@3.13.1@node-sass
gyp ERR! node -v v8.11.3
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
Build failed with error code: 1
Error: post install error, please remove node_modules before retry!
Run "C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/build.js" error, exit cod e 1
at ChildProcess.proc.on.code (C:\Users\fengtao.fie\node_modules_runscript@ 1.3.0@runscript\index.js:74:21)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
npminstall version: 2.30.1
npminstall args: E:\学习软件\Node\node.exe C:\Users\fengtao.fie\node_modules_n pminstall@2.30.1@npminstall\bin\install.js --registry=http://registry.npm.taobao .org/ --china --stdio=inherit --cwd=E:\vs2012代码\kdb-qianniu
'tnpm' ▒▒▒▒▒ڲ▒▒▒▒ⲿ▒▒▒Ҳ▒▒▒ǿ▒▒▒▒еij▒▒▒
▒▒▒▒▒▒▒▒▒ļ▒▒▒
[core-error] 运行报错, 请在这里反馈问题给 hugohua https://github.com/fieteam/fie /issues/new
Error: install error
at ChildProcess.spawn.on.on (C:\Users\fengtao.fie\[email protected] .5@fie-npm\lib\index.js:53:18)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at ChildProcess.cp.emit (C:\Users\fengtao.fie\[email protected] .0@cross-spawn\lib\enoent.js:40:29)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)

执行fie init nuke报错

D:\project\nukedemo>fie init nuke
'tnpm'
[fie-error] 运行报错, 请在这里反馈问题给 @擎空 @宇果 https://github.com/fieteam/fie/issues/new
C:\Users\Donnie123.fie\node_modules.4.2.0@koa-bodyparser\index.js:72
return async function bodyParser(ctx, next) {
^^^^^^^^
SyntaxError: Unexpected token function
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
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\Donnie123.fie\node_modules.0.0.5@fie-toolkit-nuke\weex-devtool\lib\DebugServer.js:9:18)
at Module._compile (module.js:570:32)
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)

qap init 报错

[core-error] 运行报错, 请在这里反馈问题给 hugohua https://github.com/fieteam/fie/issues/new
C:\Users\Administrator.fie\node_modules_koa-static@5.0.0@koa-static\index.js:39
return async function serve (ctx, next) {
^^^^^^^^

SyntaxError: Unexpected token function
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
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\Administrator.fie\node_modules_weex-debugger@1.1.19@weex-debugger\lib\server\index.js:5:13)
at Module._compile (module.js:570:32)
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\Administrator.fie\node_modules_weex-debugger@1.1.19@weex-debugger\lib\index.js:17:19)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
PS E:\workSpace>

ding init 后 fie 报错找不到 package.json

你好,我正在按照钉钉Rax应用文档的初始化步骤新建项目(文档地址),发现以下报错:

[15:19:12] aichaodeMacBook-Pro-2:rax-demo aichao.ac$ ding init -v
[fie-error] 运行报错, 请在这里反馈问题给 @擎空 @宇果 https://github.com/fieteam/fie/issues/new
Error: ENOENT: no such file or directory, open '/Users/aichao.ac/.fie/package.json'
    at Object.fs.openSync (fs.js:653:18)
    at Object.fs.readFileSync (fs.js:554:33)
    at Object.<anonymous> (/Users/aichao.ac/.fie/node_modules/[email protected]@pjson/pjson.js:4:19)
    at Module._compile (module.js:624:30)
    at Object.Module._extensions..js (module.js:635:10)
    at Module.load (module.js:545:32)
    at tryModuleLoad (module.js:508:12)
    at Function.Module._load (module.js:500:3)
    at Module.require (module.js:568:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/aichao.ac/.fie/node_modules/[email protected]@javascript-obfuscator/dist/index.js:24:55083)
    at t (/Users/aichao.ac/.fie/node_modules/[email protected]@javascript-obfuscator/dist/index.js:24:155)
    at Object.module.exports.Object.defineProperty.value (/Users/aichao.ac/.fie/node_modules/[email protected]@javascript-obfuscator/dist/index.js:24:265932)
    at t (/Users/aichao.ac/.fie/node_modules/[email protected]@javascript-obfuscator/dist/index.js:24:155)
    at Object.<anonymous> (/Users/aichao.ac/.fie/node_modules/[email protected]@javascript-obfuscator/dist/index.js:24:22788)
    at t (/Users/aichao.ac/.fie/node_modules/[email protected]@javascript-obfuscator/dist/index.js:24:155)

return async function bodyParser(ctx, next) {

please help to see what is wrong:

E:>qap init mkt
mkdir: path already exists: E:/mkt
'tnpm'
[fie-error] 运行报错, 请在这里反馈问题给 @擎空 @宇果 https://github.com/fieteam/
fie/issues/new
C:\Users\Administrator.fie\node_modules_koa-bodyparser@4.2.0@koa-bodyparser\in
dex.js:72
return async function bodyParser(ctx, next) {
^^^^^^^^

SyntaxError: Unexpected token function
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
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\Administrator.fie\node_modules_fie-toolkit
-nuke@0.7.35@fie-toolkit-nuke\weex-devtool\lib\DebugServer.js:9:18)
at Module._compile (module.js:570:32)
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)

fie qnproxy run 怎么试用

E:\workspace_qap_jy>fie qnproxy run
'tnpm' �����ڲ����ⲿ���Ҳ���ǿ����еij���
�������ļ�
[fie-error] 运行报错, 请在这里反馈问题给 @擎空 @宇果 https://github.com/fieteam/fie/issues/new
C:\Users\molin.fie\node_modules_koa-logger@3.1.0@koa-logger\index.js:36
return async function logger (ctx, next) {
^^^^^^^^
SyntaxError: Unexpected token function
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\molin.fie\node_modules_fie-plugin-qnproxy@0.1.15@fie-plugin-qnproxy\lib\run.js:9:16)
at Module._compile (module.js:570:32)

E:\workspace_qap_jy>fie -h

fie 使用帮助: $ fie [command] [options]

$  fie                     显示fie帮助信息,若目录下有使用的套件,则会同时显示套件的帮助信息
$  fie init [toolkitName]  初始化套件
$  fie install [name]      安装FIE模块
$  fie update [name]       更新FIE模块
$  fie list [type]         插件列表
$  fie ii                  安装npm模块,功能等同于npm install,但安装速度更快更稳定
$  fie clear               清空 fie 的本地缓存
$  fie switch              切换 fie 的开发环境
$  fie help                显示套件帮助信息
$  fie [name]              其他调用插件命令

Options:

 -h, --help                显示fie帮助信息
 -v, --version             显示fie版本

提示:
套件 - 若想查看项目中所使用的套件帮助信息,请在项目根目录执行该命令.
插件 - 若想查看插件的帮助信息,请使用 fie [name] help 命令, eg : fie git help
环境 - 当前FIE开发环境为: 外网环境 , 可使用 $ fie switch 进行切换

E:\workspace_qap_jy>fie qnproxy
'tnpm' �����ڲ����ⲿ���Ҳ���ǿ����еij���
�������ļ�
[fie-error] 运行报错, 请在这里反馈问题给 @擎空 @宇果 https://github.com/fieteam/fie/issues/new
C:\Users\molin.fie\node_modules_koa-logger@3.1.0@koa-logger\index.js:36
return async function logger (ctx, next) {
^^^^^^^^
SyntaxError: Unexpected token function
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\molin.fie\node_modules_fie-plugin-qnproxy@0.1.15@fie-plugin-qnproxy\lib\run.js:9:16)
at Module._compile (module.js:570:32)

启动调试时报错

TypeError: this.emit is not a function
at WebSocket.socket.on (/Users/zhangkui/.fie/node_modules/_koa-websocket@2.1.0@koa-websocket/index.js:25:10)
at emitOne (events.js:116:13)
at WebSocket.emit (events.js:211:7)
at Receiver.onerror (/Users/zhangkui/.fie/node_modules/_ws@1.1.5@ws/lib/WebSocket.js:876:10)
at Receiver.error (/Users/zhangkui/.fie/node_modules/_ws@1.1.5@ws/lib/Receiver.js:321:10)
at Receiver.maxPayloadExceeded (/Users/zhangkui/.fie/node_modules/_ws@1.1.5@ws/lib/Receiver.js:389:8)
at Receiver. (/Users/zhangkui/.fie/node_modules/_ws@1.1.5@ws/lib/Receiver.js:479:20)
at Receiver.add (/Users/zhangkui/.fie/node_modules/_ws@1.1.5@ws/lib/Receiver.js:103:24)
at Socket.realHandler (/Users/zhangkui/.fie/node_modules/_ws@1.1.5@ws/lib/WebSocket.js:825:20)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:250:11)
at Socket.Readable.push (_stream_readable.js:208:10)
at TCP.onread (net.js:594:20)

webpackHotDevClient.js' of undefined

MacBook-Pro:project2 zhoupeng$ qap debug
启动调试中...
Happy[js]: Version: 4.0.0. Threads: 6 (shared pool)
Happy[js]: All set; signaling webpack to proceed.
Happy[css]: Version: 4.0.0. Threads: 6 (shared pool)
Happy[css]: All set; signaling webpack to proceed.
Happy[less]: Version: 4.0.0. Threads: 6 (shared pool)
Happy[less]: All set; signaling webpack to proceed.
Happy[rxscss]: Version: 4.0.0. Threads: 6 (shared pool)
Happy[rxscss]: All set; signaling webpack to proceed.
Happy[json]: Version: 4.0.0. Threads: 6 (shared pool)
Happy[json]: All set; signaling webpack to proceed.
📦 building ...10.12%[fie-error] 运行报错, 请在这里反馈问题给 @擎空 @宇果 https://github.com/fieteam/fie/issues/new
TypeError: Cannot read property '/Users/zhoupeng/.fie/node_modules/_fie-toolkit-nuke@0.7.36@fie-toolkit-nuke/lib/hot-dev-utils/webpackHotDevClient.js' of undefined
at /Users/zhoupeng/.fie/node_modules/_rax-webpack-plugin@0.4.11@rax-webpack-plugin/lib/index.js:77:63
at handleExternals (/Users/zhoupeng/.fie/node_modules/_webpack@3.5.5@webpack/lib/ExternalModuleFactoryPlugin.js:70:16)
at /Users/zhoupeng/.fie/node_modules/_webpack@3.5.5@webpack/lib/ExternalModuleFactoryPlugin.js:83:5
at handleExternal (/Users/zhoupeng/.fie/node_modules/_webpack@3.5.5@webpack/lib/ExternalModuleFactoryPlugin.js:26:32)
at /Users/zhoupeng/.fie/node_modules/_webpack@3.5.5@webpack/lib/ExternalModuleFactoryPlugin.js:85:24
at handleExternals (/Users/zhoupeng/.fie/node_modules/_webpack@3.5.5@webpack/lib/ExternalModuleFactoryPlugin.js:82:5)
at /Users/zhoupeng/.fie/node_modules/_webpack@3.5.5@webpack/lib/ExternalModuleFactoryPlugin.js:83:5
at applyPluginsAsyncWaterfall (/Users/zhoupeng/.fie/node_modules/_webpack@3.5.5@webpack/lib/NormalModuleFactory.js:234:4)
at NormalModuleFactory.applyPluginsAsyncWaterfall (/Users/zhoupeng/.fie/node_modules/_tapable@0.2.8@tapable/lib/Tapable.js:260:70)
at NormalModuleFactory.create (/Users/zhoupeng/.fie/node_modules/_webpack@3.5.5@webpack/lib/NormalModuleFactory.js:218:8)
at _this.semaphore.acquire (/Users/zhoupeng/.fie/node_modules/_webpack@3.5.5@webpack/lib/Compilation.js:237:13)
at Semaphore.acquire (/Users/zhoupeng/.fie/node_modules/_webpack@3.5.5@webpack/lib/util/Semaphore.js:16:4)
at iteratorFactory (/Users/zhoupeng/.fie/node_modules/_webpack@3.5.5@webpack/lib/Compilation.js:235:20)
at /Users/zhoupeng/.fie/node_modules/_async@2.5.0@async/dist/async.js:3083:16
at eachOfArrayLike (/Users/zhoupeng/.fie/node_modules/_async@2.5.0@async/dist/async.js:1003:9)
at eachOf (/Users/zhoupeng/.fie/node_modules/_async@2.5.0@async/dist/async.js:1051:5)
(node:26564) DeprecationWarning: Chunk.modules is deprecated. Use Chunk.getNumberOfModules/mapModules/forEachModule/containsModule instead.

qap ini 报错

mac 10.13.1 [email protected] [email protected]
qap init qnapp [fie-error] 运行报错, 请在这里反馈问题给 @擎空 @宇果 https://github.com/fieteam/fie/issues/new TypeError: Class constructor Application cannot be invoked without 'new' at Object.<anonymous> (/Users/wangyiqun/.fie/node_modules/[email protected]@fie-toolkit-nuke/weex-devtool/lib/DebugServer.js:12:22) at Module._compile (module.js:641:30) at Object.Module._extensions..js (module.js:652:10) at Module.load (module.js:560:32) at tryModuleLoad (module.js:503:12) at Function.Module._load (module.js:495:3) at Module.require (module.js:585:17) at require (internal/module.js:11:18) at Object.<anonymous> (/Users/wangyiqun/.fie/node_modules/[email protected]@fie-toolkit-nuke/lib/rx-server.js:11:21) at Module._compile (module.js:641:30) at Object.Module._extensions..js (module.js:652:10) at Module.load (module.js:560:32) at tryModuleLoad (module.js:503:12) at Function.Module._load (module.js:495:3) at Module.require (module.js:585:17) at require (internal/module.js:11:18)

fie publish 命令外网是否可用?

请问外网能否使用 fie publish 发布到cdn,如果可以需要怎么配置?

➔ fie publish
[fie-toolkit-blue] 不建议在master分支上进行开发及发布,建议切换到 daily/x.y.z 分支进行开发
[fie-toolkit-blue] 开始提交到daily环境,大概需要几秒的时间,请稍等...
(node:15800) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: git is not a function
(node:15800) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

node v7.8.0 fie v2.7.2

fie init blue error

Error: post install error, please remove node_modules before retry!
Run "C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/build.js" error, exit code 1
at ChildProcess.proc.on.code (C:\Users\yulinho\AppData\Roaming\npm\node_modules\fie\node_modules_runscript@1.3.0@runscript\index.js:74:21)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

NODEJS: V8.11.3
NPM:5.6.0
WINDOW10

[core-error] 运行插件或套件时出现了错误, 未找到 convert-source-map 模块! 正在尝试自动修复

运行qap debug时,出现如下错误信息:

/bin/sh: tnpm: command not found
[core-error] 运行插件或套件时出现了错误, 未找到 convert-source-map 模块! 正在尝试自动修复...
⠋ content buffer: {"type":"Buffer","data":[]}
✖ Install fail! SyntaxError: Unexpected end of JSON input (file: /Users/sck/.fie/node_modules/_convert-source-map@1.6.0@convert-source-map/package.json)
SyntaxError: Unexpected end of JSON input (file: /Users/sck/.fie/node_modules/_convert-source-map@1.6.0@convert-source-map/package.json)
at JSON.parse ()
at Object.readJSON (/usr/local/lib/node_modules/qap-cli/node_modules/fie-npm/node_modules/npminstall/lib/utils.js:33:17)
at readJSON.next ()
at onFulfilled (/usr/local/lib/node_modules/qap-cli/node_modules/co/index.js:65:19)
at
npminstall version: 3.17.0
npminstall args: /usr/local/bin/node /usr/local/lib/node_modules/qap-cli/node_modules/fie-npm/node_modules/npminstall/bin/install.js convert-source-map --cwd=/Users/sck/.fie --registry=http://registry.npm.taobao.org/ --china --stdio=inherit
[core-error] sorry 自动修复失败, 请手动修复
[core-error] 运行报错, 请在这里反馈问题给 hugohua https://github.com/fieteam/fie/issues/new
Error: Cannot find module 'convert-source-map'
at Function.Module._resolveFilename (module.js:543:15)
at Function.Module._load (module.js:470:25)
at Module.require (module.js:593:17)
at require (internal/module.js:11:18)
at Object. (/Users/sck/.fie/node_modules/_babel-core@6.26.3@babel-core/lib/transformation/file/index.js:38:25)
at Module._compile (module.js:649:30)
at Object.Module._extensions..js (module.js:660:10)
at Module.load (module.js:561:32)
at tryModuleLoad (module.js:501:12)
at Function.Module._load (module.js:493:3)

node版本:9.10.1
qap版本:3.1.15
babel-cli: 6.26.0
fie: v3.1.6

命令task变量替换时先trim一下避免传入空格参数

const command = task.command.replace(COMMAND_PARAM_HOOK, hookParam).split(' ');

上述代码,会将fie中的task配置

build: [
  {
    command: 'tnpm run build $$',
  },
]

转为:

spawn('tnpm', ['run', 'build', ''])

最终会执行:

webpack ""

导致执行报错

'tnpm' 运行报错,

'tnpm' �����ڲ����ⲿ���Ҳ���ǿ����еij���
�������ļ�
[fie-error] 运行报错, 请在这里反馈问题给 @擎空 @宇果 https://github.com/fieteam/fie/issues/new
TypeError: Cannot read property 'ret' of undefined
at WebSocket. (C:\Users\Administrator.fie\node_modules_fie-toolkit-nuke@0.7.36@fie-toolkit-nuke\weex-devtool\lib\router\Websocket.js:288:67)
at emitTwo (events.js:106:13)
at WebSocket.emit (events.js:191:7)
at Receiver.ontext (C:\Users\Administrator.fie\node_modules_ws@1.1.5@ws\lib\WebSocket.js:841:10)
at C:\Users\Administrator.fie\node_modules_ws@1.1.5@ws\lib\Receiver.js:536:18
at Receiver.applyExtensions (C:\Users\Administrator.fie\node_modules_ws@1.1.5@ws\lib\Receiver.js:371:5)
at C:\Users\Administrator.fie\node_modules_ws@1.1.5@ws\lib\Receiver.js:508:14
at Receiver.flush (C:\Users\Administrator.fie\node_modules_ws@1.1.5@ws\lib\Receiver.js:347:3)
at Receiver.finish (C:\Users\Administrator.fie\node_modules_ws@1.1.5@ws\lib\Receiver.js:541:12)
at Receiver.expectHandler (C:\Users\Administrator.fie\node_modules_ws@1.1.5@ws\lib\Receiver.js:493:33)
at Receiver.add (C:\Users\Administrator.fie\node_modules_ws@1.1.5@ws\lib\Receiver.js:103:24)
at Socket.realHandler (C:\Users\Administrator.fie\node_modules_ws@1.1.5@ws\lib\WebSocket.js:825:20)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:176:18)
at Socket.Readable.push (_stream_readable.js:134:10)
at TCP.onread (net.js:547:20)
Error:can not find the peer : chrome-debugger[jbg5jnoh64zvg245rlk-0x07]
@(C:\Users\Administrator.fie\node_modules_fie-toolkit-nuke@0.7.36@fie-toolkit-nuke\weex-devtool\lib\components\P2PSession.js:115:16)

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.