Comments (10)
Can u paste the full log in the comment?
from weex.
serve ./ -p 12580
-bash: serve: command not found
from weex.
info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'serve' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'preserve', 'serve', 'postserve' ]
5 info lifecycle [email protected]preserve: [email protected]preserve: no script for preserve, continuing
6 silly lifecycle [email protected]
7 info lifecycle [email protected]serve: [email protected]serve: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]
9 verbose lifecycle [email protected]serve: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/yinliang/github项目/weex/weex/node_modules/.bin:/usr/local/bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/usr/local/ bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/usr/local/binserve: CWD: /Users/yinliang/github项目/weex/weex
10 verbose lifecycle [email protected]
11 silly lifecycle [email protected]serve: Args: [ '-c', 'npm run dev && npm run build && serve ./ -p 12580' ]serve: Failed to exec serve script
12 info lifecycle [email protected]
13 verbose stack Error: [email protected] serve: npm run dev && npm run build && serve ./ -p 12580
13 verbose stack spawn ENOENT
13 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:17:16)
13 verbose stack at emitTwo (events.js:87:13)
13 verbose stack at ChildProcess.emit (events.js:172:7)
13 verbose stack at maybeClose (internal/child_process.js:818:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
14 verbose pkgid [email protected]
15 verbose cwd /Users/yinliang/github项目/weex/weex
16 error Darwin 15.4.0
17 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "serve"
18 error node v4.2.2
19 error npm v3.8.7
20 error file sh
21 error code ELIFECYCLE
22 error errno ENOENT
23 error syscall spawn
24 error [email protected] serve: npm run dev && npm run build && serve ./ -p 12580
24 error spawn ENOENT
25 error Failed at the [email protected] serve script 'npm run dev && npm run build && serve ./ -p 12580'.
25 error Make sure you have the latest version of node.js and npm installed.
25 error If you do, this is most likely a problem with the weex package,
25 error not with npm itself.
25 error Tell the author that this fails on your system:
25 error npm run dev && npm run build && serve ./ -p 12580
25 error You can get information on how to open an issue for this project with:
25 error npm bugs weex
25 error Or if that isn't available, you can get their info via:
25 error npm owner ls weex
25 error There is likely additional logging output above.
26 verbose exit [ 1, true ]
from weex.
Don't you run npm run install
before npm run serve
? Otherwise could u try to run node_modules/.bin/serve -p 12580
?
from weex.
i has installed,
node_modules/.bin/serve -p 12580
-bash: node_modules/.bin/serve: No such file or directory
@terrykingcha
from weex.
It's weird. If all are installed, then you will got some nodejs modules in node_modules
folder and some executable file in node_modules/.bin
folder
from weex.
node_modules folder has serve,but node_modules/.bin folder don't have.
from weex.
i re clone weex,and it works .thanks @terrykingcha
from weex.
Nicely, Enjoy weex!
from weex.
info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'serve' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'preserve', 'serve', 'postserve' ]
5 info preserve [email protected]
6 info serve [email protected]
7 verbose unsafe-perm in lifecycle true
8 info [email protected] Failed to exec serve script
9 verbose stack Error: [email protected] serve: serve ./ -p 12580
9 verbose stack spawn ENOENT
9 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:17:16)
9 verbose stack at emitTwo (events.js:87:13)
9 verbose stack at ChildProcess.emit (events.js:172:7)
9 verbose stack at maybeClose (internal/child_process.js:827:16)
9 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
10 verbose pkgid [email protected]
11 verbose cwd /home/kangle/2016/project/weex/weex
12 error Linux 3.13.0-55-generic
13 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "serve"
14 error node v4.4.3
15 error npm v2.15.1
16 error file sh
17 error code ELIFECYCLE
18 error errno ENOENT
19 error syscall spawn
20 error [email protected] serve: serve ./ -p 12580
20 error spawn ENOENT
21 error Failed at the [email protected] serve script 'serve ./ -p 12580'.
21 error This is most likely a problem with the weex package,
21 error not with npm itself.
21 error Tell the author that this fails on your system:
21 error serve ./ -p 12580
21 error You can get information on how to open an issue for this project with:
21 error npm bugs weex
21 error Or if that isn't available, you can get their info via:
21 error
21 error npm owner ls weex
21 error There is likely additional logging output above.
22 verbose exit [ 1, true ]
why???
from weex.
Related Issues (20)
- 能否适配开源的openharmony?有没计划? HOT 4
- Weex input
- weex <text>标签设置属性显示省略号,英文单词语句内容长度溢出时显示的省略号不对
- input怎么设置输入框光标颜色
- web playground 已无法正常使用 HOT 3
- 我想问一下,Weex什么时候会升级到1.0.0版本?I really want to know that, when will Weex release version 1.0.0? HOT 4
- [Android]集成了0.30.2 targetsdk=30 初始化weex时报错 E/weex: reportJSException >>>> instanceId:, exception function:initFramework, exception:failed to create ashmem region: Permission denied HOT 1
- 真的很希望官方能回应一下weex2.0更新问题!!! HOT 16
- Android weex_sdk-0.30.2 libweexjsb.so 存在频繁自启或关联启动
- vue框架下的js开发能使用imort()函数进行懒加载吗?我webpack打包能成功,但是运行报错了,有大神指导一下吗?
- Weex 不再维护了嘛? HOT 7
- [Android] AGP升级 导致无法正常加载weex页面 HOT 1
- dotwe 打不开
- [Android][iOS] Slider内嵌的子组件 添加了 touchmove事件,左右滑动子组件时,子组件的滑动事件并不会被消费,而是触发了Slider自身的滑动,这个怎么处理? HOT 1
- 未来有想过支持svelte.js或者JQ这些吗 HOT 1
- 官网文档的搜索功能不可用 HOT 1
- [iOS] iOS显示报错 HOT 1
- 这个框架是凉了吗,也不说啥时候开源了 HOT 1
- [iOS]iOS17闪退,WXComponent+Display.m objc_loadWeakRetained HOT 1
- [Android][iOS][Dev-tool] Unexpected behavior when xx where weex version is 0.aa.bb.cc
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 weex.