Comments (13)
呃?所以你是 ssh 到一台远程机器在做这个咯…掉线我就管不了了。只能告诉你,这个命令是让 webpack 去编译项目,完成后 frontend 目录下会生成一个 build/ 目录,里面有4 个文件,你可以验证一下这个点。
断线的话,就后台运行一下吧,过会儿再上去看看。
------------------ Original ------------------
From: "junbaor"[email protected]
Date: Wed, Sep 14, 2016 06:59 PM
To: "Coding/WebIDE"[email protected];
Cc: "hackape"[email protected];"Mention"[email protected];
Subject: Re: [Coding/WebIDE] ERR:[email protected] build:NODE_ENV=production ./node_modules/.bin/webpack
(#3)
@hackape 然后我的主机就失去联系了
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
from webide.
需要你的 npm-debug.log 才知道什么问题
from webide.
我这边也有同样的问题:
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/Cellar/node/6.5.0/bin/node" "/usr/local/bin/npm" "run" "build"
npm ERR! node v6.5.0
npm ERR! npm v3.10.3
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] build: `NODE_ENV=production ./node_modules/.bin/webpack`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] build script 'NODE_ENV=production ./node_modules/.bin/webpack'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the coding-web-ide package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! NODE_ENV=production ./node_modules/.bin/webpack
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs coding-web-ide
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls coding-web-ide
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/souche/dfc/webide/WebIDE-Workspace/frontend/npm-debug.log
npm-debug.log如下:
1 verbose cli [ '/usr/local/Cellar/node/6.5.0/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'run',
1 verbose cli 'build' ]
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 silly lifecycle [email protected]~prebuild: no script for prebuild, continuing
7 info lifecycle [email protected]~build: [email protected]
8 verbose lifecycle [email protected]~build: unsafe-perm in lifecycle true
9 verbose lifecycle [email protected]~build: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/souche/dfc/webide/WebIDE-Workspace/frontend/node_modules/.bin:/usr/local/Cellar/node/6.5.0/bin:/Users/souche/.rvm/gems/ruby-2.3.0/bin:/Users/souche/.rvm/gems/ruby-2.3.0@global/bin:/Users/souche/.rvm/rubies/ruby-2.3.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/souche/.rvm/bin
10 verbose lifecycle [email protected]~build: CWD: /Users/souche/dfc/webide/WebIDE-Workspace/frontend
11 silly lifecycle [email protected]~build: Args: [ '-c', 'NODE_ENV=production ./node_modules/.bin/webpack' ]
12 info lifecycle [email protected]~build: Failed to exec build script
13 verbose stack Error: [email protected] build: `NODE_ENV=production ./node_modules/.bin/webpack`
13 verbose stack spawn ENOENT
13 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:33:16)
13 verbose stack at emitTwo (events.js:106:13)
13 verbose stack at ChildProcess.emit (events.js:191:7)
13 verbose stack at maybeClose (internal/child_process.js:877:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
14 verbose pkgid [email protected]
15 verbose cwd /Users/souche/dfc/webide/WebIDE-Workspace/frontend
16 error Darwin 15.6.0
17 error argv "/usr/local/Cellar/node/6.5.0/bin/node" "/usr/local/bin/npm" "run" "build"
18 error node v6.5.0
19 error npm v3.10.3
20 error file sh
21 error code ELIFECYCLE
22 error errno ENOENT
23 error syscall spawn
24 error [email protected] build: `NODE_ENV=production ./node_modules/.bin/webpack`
24 error spawn ENOENT
25 error Failed at the [email protected] build script 'NODE_ENV=production ./node_modules/.bin/webpack'.
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 coding-web-ide package,
25 error not with npm itself.
25 error Tell the author that this fails on your system:
25 error NODE_ENV=production ./node_modules/.bin/webpack
25 error You can get information on how to open an issue for this project with:
25 error npm bugs coding-web-ide
25 error Or if that isn't available, you can get their info via:
25 error npm owner ls coding-web-ide
25 error There is likely additional logging output above.
26 verbose exit [ 1, true ]
麻烦看下呢
from webide.
node_modules/.bin
确认下这个目录是不是存在,没有的话说明,安装的时候 webpack 的 bin 没有 link 到这个目录下,多半是因为这个。 @JChord @szy0syz
from webide.
暂时可以用 node 直接调用一下 webpack 的 bin 程序。把 WebIDE-Frontend/package.json
scripts.build 字段改为:
NODE_ENV=production node node_modules/webpack/bin/webpack.js
应该就解决了。更完善的解决方法我调查后更新到代码里。
from webide.
coding/WebIDE-Frontend@a9684c7 已经修好了
from webide.
已经 pull 最新版本的代码还是会卡在这里,
改为 NODE_ENV=production node node_modules/webpack/bin/webpack.js
后问题依旧。
from webide.
@junbaor 它只是编译时间比较长,应该没问题,等等看
from webide.
@hackape 然后我的主机就失去联系了 😳
from webide.
前端模块目录下执行 npm ls 会有几个 error,不太懂前端,请问有影响吗?
from webide.
不要紧的。话说你这 app 是什么,好帅~
from webide.
@hackape JuiceSSH 😯
from webide.
@hackape 多谢完美
from webide.
Related Issues (20)
- 执行build脚本报错 HOT 16
- 用docker运行,点open进入空白页面该怎么办?
- 本地Server启动,页面空白 HOT 3
- 启动后前端页面是空白页面
- 项目的webssh采用什么进行数据传输的? HOT 2
- 编译运行的时候JSON解析错误
- 还有前端的开发者在吗 HOT 4
- 运行卡住了 HOT 1
- 根据现有的代码 构建了一个 alpine edge 的镜像版本 需要的自取
- 成功build,但是无法运行 HOT 2
- shell(终端)打不开 HOT 4
- 前端通过yarn start运行后,浏览器报http://ide.test:8060/sockjs-node/info net::ERR_NAME_NOT_RESOLVED HOT 1
- v 0.16.1 终端打不开 HOT 2
- 搭建时卡在一半
- 本地搭建成功了,如何执行代码,和调试代码? HOT 2
- 搭建不成功,卡在95% HOT 2
- 代码提示 HOT 1
- 拉取子项目时候clone一直没有反应
- 执行拉取子代码时候clone一直没反应
- 谷歌誓言登录
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 webide.