Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transformer 貌似有异常 #95

Closed
zhoukekestar opened this issue Apr 27, 2016 · 5 comments
Closed

transformer 貌似有异常 #95

zhoukekestar opened this issue Apr 27, 2016 · 5 comments
Assignees

Comments

@zhoukekestar
Copy link
Contributor

zhoukekestar commented Apr 27, 2016

OS:windows 10
Node: v5.0.0
Branch: weex [dev]

> git clone https://github.com/alibaba/weex
> cd weex
> npm install

上面的命令都正常,执行npm run serve 错误
transformer 貌似有异常,查了一下issues,貌似没人遇到这个问题

C:\Users\Administrator\Desktop\test\weex [dev]> npm run serve

> weex@0.4.0 serve C:\Users\Administrator\Desktop\test\weex
> npm run dev && npm run build && serve ./ -p 12580

▀ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

> weex@0.4.0 dev C:\Users\Administrator\Desktop\test\weex
> npm run clean && npm run transform

▀ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

> weex@0.4.0 clean C:\Users\Administrator\Desktop\test\weex
> npm run clean:examples && npm run clean:test

▀ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

> weex@0.4.0 clean:examples C:\Users\Administrator\Desktop\test\weex
> echo "\033[36;1m[Clean]\033[0m \033[33mexamples\033[0m" && rm -vf examples/build/*

▀ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
"\033[36;1m[Clean]\033[0m \033[33mexamples\033[0m"
▀ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

> weex@0.4.0 clean:test C:\Users\Administrator\Desktop\test\weex
> echo "\033[36;1m[Clean]\033[0m \033[33mtest\033[0m" && rm -vf test/build/*

▀ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
"\033[36;1m[Clean]\033[0m \033[33mtest\033[0m"
▀ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
▀ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

> weex@0.4.0 transform C:\Users\Administrator\Desktop\test\weex
> npm run transform:examples && npm run transform:test

▀ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

> weex@0.4.0 transform:examples C:\Users\Administrator\Desktop\test\weex
> transformer -g WARNING examples/*.we -o examples/build

▀ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
fs.js:584
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

Error: ENOENT: no such file or directory, open 'C:\Users\Administrator\Desktop\test\weex\examples\*.we'
    at Error (native)
    at Object.fs.openSync (fs.js:584:18)
    at Object.fs.readFileSync (fs.js:431:33)
    at C:\Users\Administrator\Desktop\test\weex\node_modules\weex-transformer\bin\transformer.js:62:20
    at Array.forEach (native)
    at Object.<anonymous> (C:\Users\Administrator\Desktop\test\weex\node_modules\weex-transformer\bin\transformer.js:54:14)
    at Module._compile (module.js:425:26)
    at Object.Module._extensions..js (module.js:432:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
▀ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

npm ERR! Windows_NT 10.0.10240
npm ERR! argv "D:\\ProgramFiles\\nodejs\\node.exe" "D:\\ProgramFiles\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "transform:examples"
npm ERR! node v5.0.0
npm ERR! npm  v3.3.6
npm ERR! code ELIFECYCLE
npm ERR! weex@0.4.0 transform:examples: `transformer -g WARNING examples/*.we -o examples/build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the weex@0.4.0 transform:examples script 'transformer -g WARNING examples/*.we -o examples/build'.
npm ERR! This is most likely a problem with the weex package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     transformer -g WARNING examples/*.we -o examples/build
npm ERR! You can get their info via:
npm ERR!     npm owner ls weex
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\Administrator\Desktop\test\weex\npm-debug.log
▀ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

npm ERR! Windows_NT 10.0.10240
npm ERR! argv "D:\\ProgramFiles\\nodejs\\node.exe" "D:\\ProgramFiles\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "transform"
npm ERR! node v5.0.0
npm ERR! npm  v3.3.6
npm ERR! code ELIFECYCLE
npm ERR! weex@0.4.0 transform: `npm run transform:examples && npm run transform:test`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the weex@0.4.0 transform script 'npm run transform:examples && npm run transform:test'.
npm ERR! This is most likely a problem with the weex package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run transform:examples && npm run transform:test
npm ERR! You can get their info via:
npm ERR!     npm owner ls weex
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\Administrator\Desktop\test\weex\npm-debug.log
▀ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

npm ERR! Windows_NT 10.0.10240
npm ERR! argv "D:\\ProgramFiles\\nodejs\\node.exe" "D:\\ProgramFiles\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "dev"
npm ERR! node v5.0.0
npm ERR! npm  v3.3.6
npm ERR! code ELIFECYCLE
npm ERR! weex@0.4.0 dev: `npm run clean && npm run transform`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the weex@0.4.0 dev script 'npm run clean && npm run transform'.
npm ERR! This is most likely a problem with the weex package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run clean && npm run transform
npm ERR! You can get their info via:
npm ERR!     npm owner ls weex
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\Administrator\Desktop\test\weex\npm-debug.log
▀ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

npm ERR! Windows_NT 10.0.10240
npm ERR! argv "D:\\ProgramFiles\\nodejs\\node.exe" "D:\\ProgramFiles\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "serve"
npm ERR! node v5.0.0
npm ERR! npm  v3.3.6
npm ERR! code ELIFECYCLE
npm ERR! weex@0.4.0 serve: `npm run dev && npm run build && serve ./ -p 12580`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the weex@0.4.0 serve script 'npm run dev && npm run build && serve ./ -p 12580'.
npm ERR! This is most likely a problem with the weex package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run dev && npm run build && serve ./ -p 12580
npm ERR! You can get their info via:
npm ERR!     npm owner ls weex
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\Administrator\Desktop\test\weex\npm-debug.log

npm-debug.log文件

0 info it worked if it ends with ok
1 verbose cli [ 'D:\\ProgramFiles\\nodejs\\node.exe',
1 verbose cli   'D:\\ProgramFiles\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'run',
1 verbose cli   'serve' ]
2 info using npm@3.3.6
3 info using node@v5.0.0
4 verbose run-script [ 'preserve', 'serve', 'postserve' ]
5 info lifecycle weex@0.4.0~preserve: weex@0.4.0
6 silly lifecycle weex@0.4.0~preserve: no script for preserve, continuing
7 info lifecycle weex@0.4.0~serve: weex@0.4.0
8 verbose lifecycle weex@0.4.0~serve: unsafe-perm in lifecycle true
9 verbose lifecycle weex@0.4.0~serve: PATH: D:\ProgramFiles\nodejs\node_modules\npm\bin\node-gyp-bin;C:\Users\Administrator\Desktop\test\weex\node_modules\.bin;C:\Users\Administrator\AppData\Local\GitHub\PortableGit_25d850739bc178b2eb13c3e2a9faafea2f9143c0\cmd;C:\Users\Administrator\AppData\Local\GitHub\PortableGit_25d850739bc178b2eb13c3e2a9faafea2f9143c0\usr\bin;C:\Users\Administrator\AppData\Local\GitHub\PortableGit_25d850739bc178b2eb13c3e2a9faafea2f9143c0\usr\share\git-tfs;C:\Users\Administrator\AppData\Local\Apps\2.0\3CTLBDXD.5RC\HQ07DP3A.MC2\gith..tion_317444273a93ac29_0003.0000_c74cce3a838f9354;C:\Users\Administrator\AppData\Local\GitHub\lfs-amd64_1.1.0;C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\Users\Administrator\AppData\Local\Apps\2.0\3CTLBDXD.5RC\HQ07DP3A.MC2\gith..tion_317444273a93ac29_0003.0000_c74cce3a838f9354\NativeBinaries\x86;C:\ProgramData\Oracle\Java\javapath;C:\Python27\;C:\Python27\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;D:\ProgramFiles\nodejs\;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files\Java\jdk1.8.0_66\bin;C:\Cocos\frameworks\cocos2d-x-3.9\tools\cocos2d-console\bin;D:\ProgramFiles\nodejs;D:\ProgramFiles\MongoDB\Server\3.0\bin;C:\Users\Administrator\AppData\Roaming\npm;C:\Users\Administrator\AppData\Local\atom\bin;C:\Program Files\Docker Toolbox
10 verbose lifecycle weex@0.4.0~serve: CWD: C:\Users\Administrator\Desktop\test\weex
11 silly lifecycle weex@0.4.0~serve: Args: [ '/d /s /c',
11 silly lifecycle   'npm run dev && npm run build && serve ./ -p 12580' ]
12 silly lifecycle weex@0.4.0~serve: Returned: code: 1  signal: null
13 info lifecycle weex@0.4.0~serve: Failed to exec serve script
14 verbose stack Error: weex@0.4.0 serve: `npm run dev && npm run build && serve ./ -p 12580`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (D:\ProgramFiles\nodejs\node_modules\npm\lib\utils\lifecycle.js:233:16)
14 verbose stack     at emitTwo (events.js:87:13)
14 verbose stack     at EventEmitter.emit (events.js:172:7)
14 verbose stack     at ChildProcess.<anonymous> (D:\ProgramFiles\nodejs\node_modules\npm\lib\utils\spawn.js:24:14)
14 verbose stack     at emitTwo (events.js:87:13)
14 verbose stack     at ChildProcess.emit (events.js:172:7)
14 verbose stack     at maybeClose (internal/child_process.js:818:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
15 verbose pkgid weex@0.4.0
16 verbose cwd C:\Users\Administrator\Desktop\test\weex
17 error Windows_NT 10.0.10240
18 error argv "D:\\ProgramFiles\\nodejs\\node.exe" "D:\\ProgramFiles\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "serve"
19 error node v5.0.0
20 error npm  v3.3.6
21 error code ELIFECYCLE
22 error weex@0.4.0 serve: `npm run dev && npm run build && serve ./ -p 12580`
22 error Exit status 1
23 error Failed at the weex@0.4.0 serve script 'npm run dev && npm run build && serve ./ -p 12580'.
23 error This is most likely a problem with the weex package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     npm run dev && npm run build && serve ./ -p 12580
23 error You can get their info via:
23 error     npm owner ls weex
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
@Jinjiang
Copy link
Contributor

please have a check @songsiqi (maybe the windows file separator problem for path.sep)

@terrykingcha
Copy link
Contributor

Did you use Windows Command Line? Then Git-bash or Cygwin will help you to solve the problem.

@zhoukekestar
Copy link
Contributor Author

zhoukekestar commented Apr 27, 2016

Yep, i use git bash by Github for Windows. It does not work for me.

@terrykingcha
Copy link
Contributor

@zhoukekestar Please pull the latest dev branch, and try to run npm install && npm run transform && npm run serve. Have Fun!

@zhoukekestar
Copy link
Contributor Author

zhoukekestar commented Apr 27, 2016

Good job. Thanks~

sospartan pushed a commit that referenced this issue Jan 4, 2017
* [android] Fix bug of border width due to viewport.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants