CodeboxIDE / codebox

Open source cloud & desktop IDE
https://www.codebox.io
Apache License 2.0
4.13k stars 588 forks source link

file not found (addons/cb.files.editor/ace/ace.js) during "npm install" #409

Open tsunammis opened 10 years ago

tsunammis commented 10 years ago

I wanted to build codebox from the repository (git), but an error occured when I do "npm install". I have respected these steps.

git clone https://github.com/CodeboxIDE/codebox.git
cd ./codebox
npm install
grunt build
grunt run

The error occur during the "npm install" command

[log][addons] Adding default addon cb.offline
[log][addons] Adding default addon cb.panel.files
[log][addons] Adding default addon cb.panel.outline
[log][addons] Adding default addon cb.project
[log][addons] Adding default addon cb.settings
[log][addons] Adding default addon cb.terminal
[log][addons] Adding default addon cb.theme.dark
[log][addons] Optimizing cb.files.editor
[error][addons] error for optimization of cb.files.editor
[error][addons] options= { baseUrl: '/.codebox/addons/cb.files.editor',
  name: 'client',
  out: '/.codebox/addons/cb.files.editor/addon-built.js',
  paths: { 'require-tools': '/codebox/core/cb.addons/require-tools' },
  optimize: 'uglify',
  map:
   { '*':
      { css: 'require-tools/css/css',
        less: 'require-tools/less/less',
        text: 'require-tools/text/text' } } }
[error][addons] { [Error: Command failed: node /codebox/node_modules/requirejs/bin/r.js -o baseUrl=/.codebox/addons/cb.files.editor name=client out=/.codebox/addons/cb.files.editor/addon-built.js paths.require-tools=/codebox/core/cb.addons/require-tools optimize=uglify map.*.css=require-tools/css/css map.*.less=require-tools/less/less map.*.text=require-tools/text/text  (exited with error code 1)]
  killed: false,
  code: 1,
  signal: null,
  stdout: '\nTracing dependencies for: client\nError: ENOENT, no such file or directory \'/.codebox/addons/cb.files.editor/ace/ace.js\'\nIn module tree:\n    client\n      ace\n\nError: Error: ENOENT, no such file or directory \'/.codebox/addons/cb.files.editor/ace/ace.js\'\nIn module tree:\n    client\n      ace\n\n    at Object.fs.openSync (fs.js:427:18)\n\n',
  stderr: '' }
[log][addons] start addon /.codebox/addons/cb.git
[log][rpc] register service git
[log][rpc] add method branch_create to git
[log][rpc] add method branch_delete to git
[log][rpc] add method branches to git
[log][rpc] add method checkout to git
[log][rpc] add method clone to git
[log][rpc] add method commit to git
[log][rpc] add method commits to git
[log][rpc] add method commits_pending to git
[log][rpc] add method diff to git
[log][rpc] add method init to git
[log][rpc] add method pull to git
[log][rpc] add method push to git
[log][rpc] add method status to git
[log][rpc] add method sync to git
[log][addons] Addons are ready
[log][web] disable auth for /manifest.appcache
[log][rpc] register service /auth
[log][rpc] add method join to /auth
[log][web] disable auth for /rpc/auth/join
[log][rpc] add method settings to /auth
[log][web] disable auth for /rpc/auth/settings
[log][rpc] register service /addons
[log][rpc] add method install to /addons
[log][rpc] add method list to /addons
[log][rpc] add method registry to /addons
[log][rpc] add method uninstall to /addons
[log][watch] Starting Watch
[log][events] watch.watching.success : { watching: true, state: 'active', path: '/', error: null }

Codebox is running at http://localhost:80
ikantthink commented 10 years ago

I had the exact same issue on Ubuntu 14.04 64bit installed via npm. I used the solution from here: https://github.com/CodeboxIDE/codebox/issues/394

vh commented 10 years ago

The same issue. Ubuntu 14.04 and 12.04 64bit via npm.