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

npm run serve error #82

Closed
Ericcom opened this issue Apr 26, 2016 · 10 comments
Closed

npm run serve error #82

Ericcom opened this issue Apr 26, 2016 · 10 comments
Assignees

Comments

@Ericcom
Copy link

Ericcom commented Apr 26, 2016

npm ERR! Darwin 15.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "serve"
npm ERR! node v4.2.2
npm ERR! npm v2.14.7
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! weex@0.4.0 serve: npm run dev && npm run build && serve ./ -p 12580
npm ERR! spawn ENOENT
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.

thanks

@terrykingcha
Copy link
Contributor

Can u paste the full log in the comment?

@Ericcom
Copy link
Author

Ericcom commented Apr 26, 2016

serve ./ -p 12580

-bash: serve: command not found

@Ericcom
Copy link
Author

Ericcom commented Apr 26, 2016

info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'serve' ]
2 info using npm@3.8.7
3 info using node@v4.2.2
4 verbose run-script [ 'preserve', 'serve', 'postserve' ]
5 info lifecycle weex@0.4.0preserve: weex@0.4.0
6 silly lifecycle weex@0.4.0
preserve: no script for preserve, continuing
7 info lifecycle weex@0.4.0serve: weex@0.4.0
8 verbose lifecycle weex@0.4.0
serve: unsafe-perm in lifecycle true
9 verbose lifecycle weex@0.4.0serve: 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/bin
10 verbose lifecycle weex@0.4.0
serve: CWD: /Users/yinliang/github项目/weex/weex
11 silly lifecycle weex@0.4.0serve: Args: [ '-c', 'npm run dev && npm run build && serve ./ -p 12580' ]
12 info lifecycle weex@0.4.0
serve: Failed to exec serve script
13 verbose stack Error: weex@0.4.0 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 weex@0.4.0
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 weex@0.4.0 serve: npm run dev && npm run build && serve ./ -p 12580
24 error spawn ENOENT
25 error Failed at the weex@0.4.0 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 ]

@terrykingcha

@terrykingcha
Copy link
Contributor

Don't you run npm run install before npm run serve? Otherwise could u try to run node_modules/.bin/serve -p 12580?

@Ericcom
Copy link
Author

Ericcom commented Apr 26, 2016

i has installed,
node_modules/.bin/serve -p 12580
-bash: node_modules/.bin/serve: No such file or directory
@terrykingcha

@terrykingcha
Copy link
Contributor

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

@Ericcom
Copy link
Author

Ericcom commented Apr 26, 2016

node_modules folder has serve,but node_modules/.bin folder don't have.

@terrykingcha terrykingcha self-assigned this Apr 26, 2016
@Ericcom
Copy link
Author

Ericcom commented Apr 26, 2016

i re clone weex,and it works .thanks @terrykingcha

@Ericcom Ericcom closed this as completed Apr 26, 2016
@terrykingcha
Copy link
Contributor

Nicely, Enjoy weex!

@zhudechao
Copy link

zhudechao commented Apr 27, 2016

info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'serve' ]
2 info using npm@2.15.1
3 info using node@v4.4.3
4 verbose run-script [ 'preserve', 'serve', 'postserve' ]
5 info preserve weex@0.4.0
6 info serve weex@0.4.0
7 verbose unsafe-perm in lifecycle true
8 info weex@0.4.0 Failed to exec serve script
9 verbose stack Error: weex@0.4.0 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 weex@0.4.0
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 weex@0.4.0 serve: serve ./ -p 12580
20 error spawn ENOENT
21 error Failed at the weex@0.4.0 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???

sospartan pushed a commit that referenced this issue Jan 4, 2017
…like before.

* Add IDrawableLoader.java and corresponding get in InitConfig,WXSDKEngine,WXSDKManager,WXSDKInstance.
* Change scope of WXCustomStyleSpan and WXTextDomObject
* Make WXA.onHostViewClick and WXImage.setLocalSrc a static method.

* * [android] Init commit for richtext and fix conflict of build.gradle of playground.
(cherry picked from commit 5506f83)

* * [android] Finish image span except for view.callback(Drawable)
(cherry picked from commit 77eacdd)

* * [android] Fix img in rich text not shown problem.
(cherry picked from commit fb9a97e)

* * [android] Support inherit for root in richtext
(cherry picked from commit 4fc0ccf)

* * [android] Use ATagUtils for WXA and ASpan.
(cherry picked from commit 58deff4)

* * [android] Make img in rich text can read localDrawable
(cherry picked from commit 4c9356f)
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

3 participants