Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-23250

Creating a mobile project will throw a "Error: ENOENT: no such file or directory, stat"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Duplicate
    • Affects Version/s: Release 5.3.0
    • Fix Version/s: None
    • Component/s: Core
    • Environment:

      Appc CLI NPM: 4.2.5-3
      Appc CLI Core: 5.3.0-22
      Arrow: 1.7.30
      SDK: 5.3.0.v20160420090405
      Node: v4.4.0
      OS: El Capitan (10.11.4)

      Description

      Details: Creating a mobile project will throw Error: ENOENT: no such file or directory, stat '/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/platforms/windows/project'.

      This is a regression from 5.2.2.GA.

      Steps to reproduce:

      1. Create a mobile project with appc new and go through the prompts

      Actual: You will not be able to create a mobile project:

      2016-04-20T18:11:05.756Z | TRACE  | alloy returned error= { [Error: Command failed: /bin/sh -c "/usr/local/bin/node" "/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/bin/alloy" new --force
      fs.js:844
        return binding.stat(pathModule._makeLong(path));
                       ^
       
      Error: ENOENT: no such file or directory, stat '/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/platforms/windows/project'
          at Error (native)
          at Object.fs.statSync (fs.js:844:18)
          at Object.exports.copyDirSyncRecursive (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/node_modules/wrench/lib/wrench.js:175:23)
          at /Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/commands/new/index.js:95:10
          at Array.forEach (native)
          at Function._.each._.forEach (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)
          at module.exports (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/commands/new/index.js:94:4)
          at Object.<anonymous> (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/alloy.js:113:46)
          at Module._compile (module.js:409:26)
          at Object.Module._extensions..js (module.js:416:10)
          at Module.load (module.js:343:32)
          at Function.Module._load (module.js:300:12)
          at Module.require (module.js:353:17)
          at require (internal/module.js:12:17)
          at Object.<anonymous> (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/bin/alloy:3:1)
          at Module._compile (module.js:409:26)
          at Object.Module._extensions..js (module.js:416:10)
          at Module.load (module.js:343:32)
          at Function.Module._load (module.js:300:12)
          at Function.Module.runMain (module.js:441:10)
          at startup (node.js:139:18)
          at node.js:968:3
      ]
        killed: false,
        code: 1,
        signal: null,
        cmd: '/bin/sh -c "/usr/local/bin/node" "/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/bin/alloy" new --force' } stdout= [INFO] Deployed ti.alloy plugin to plugins/ti.alloy/plugin.py
      [INFO] Deployed ti.alloy hook to plugins/ti.alloy/hooks/alloy.js
      [INFO] Deployed ti.alloy cleanhook to plugins/ti.alloy/hooks/deepclean.js
      [INFO] Installed "ti.alloy" plugin to tiapp.xml
       stderr= fs.js:844
        return binding.stat(pathModule._makeLong(path));
                       ^
       
      Error: ENOENT: no such file or directory, stat '/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/platforms/windows/project'
          at Error (native)
          at Object.fs.statSync (fs.js:844:18)
          at Object.exports.copyDirSyncRecursive (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/node_modules/wrench/lib/wrench.js:175:23)
          at /Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/commands/new/index.js:95:10
          at Array.forEach (native)
          at Function._.each._.forEach (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)
          at module.exports (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/commands/new/index.js:94:4)
          at Object.<anonymous> (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/alloy.js:113:46)
          at Module._compile (module.js:409:26)
          at Object.Module._extensions..js (module.js:416:10)
          at Module.load (module.js:343:32)
          at Function.Module._load (module.js:300:12)
          at Module.require (module.js:353:17)
          at require (internal/module.js:12:17)
          at Object.<anonymous> (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/bin/alloy:3:1)
          at Module._compile (module.js:409:26)
          at Object.Module._extensions..js (module.js:416:10)
          at Module.load (module.js:343:32)
          at Function.Module._load (module.js:300:12)
          at Function.Module.runMain (module.js:441:10)
          at startup (node.js:139:18)
          at node.js:968:3
       
      2016-04-20T18:11:05.758Z | TRACE  | [INFO] Deployed ti.alloy plugin to plugins/ti.alloy/plugin.py
      [INFO] Deployed ti.alloy hook to plugins/ti.alloy/hooks/alloy.js
      [INFO] Deployed ti.alloy cleanhook to plugins/ti.alloy/hooks/deepclean.js
      [INFO] Installed "ti.alloy" plugin to tiapp.xml
       
      2016-04-20T18:11:05.758Z | ERROR  | fs.js:844
        return binding.stat(pathModule._makeLong(path));
                       ^
       
      Error: ENOENT: no such file or directory, stat '/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/platforms/windows/project'
          at Error (native)
          at Object.fs.statSync (fs.js:844:18)
          at Object.exports.copyDirSyncRecursive (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/node_modules/wrench/lib/wrench.js:175:23)
          at /Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/commands/new/index.js:95:10
          at Array.forEach (native)
          at Function._.each._.forEach (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)
          at module.exports (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/commands/new/index.js:94:4)
          at Object.<anonymous> (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/alloy.js:113:46)
          at Module._compile (module.js:409:26)
          at Object.Module._extensions..js (module.js:416:10)
          at Module.load (module.js:343:32)
          at Function.Module._load (module.js:300:12)
          at Module.require (module.js:353:17)
          at require (internal/module.js:12:17)
          at Object.<anonymous> (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/bin/alloy:3:1)
          at Module._compile (module.js:409:26)
          at Object.Module._extensions..js (module.js:416:10)
          at Module.load (module.js:343:32)
          at Function.Module._load (module.js:300:12)
          at Function.Module.runMain (module.js:441:10)
          at startup (node.js:139:18)
          at node.js:968:3
       
      2016-04-20T18:11:05.759Z | TRACE  | done with plugin { [Error: Command failed: /bin/sh -c "/usr/local/bin/node" "/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/bin/alloy" new --force
      fs.js:844
        return binding.stat(pathModule._makeLong(path));
                       ^
       
      Error: ENOENT: no such file or directory, stat '/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/platforms/windows/project'
          at Error (native)
          at Object.fs.statSync (fs.js:844:18)
          at Object.exports.copyDirSyncRecursive (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/node_modules/wrench/lib/wrench.js:175:23)
          at /Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/commands/new/index.js:95:10
          at Array.forEach (native)
          at Function._.each._.forEach (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)
          at module.exports (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/commands/new/index.js:94:4)
          at Object.<anonymous> (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/alloy.js:113:46)
          at Module._compile (module.js:409:26)
          at Object.Module._extensions..js (module.js:416:10)
          at Module.load (module.js:343:32)
          at Function.Module._load (module.js:300:12)
          at Module.require (module.js:353:17)
          at require (internal/module.js:12:17)
          at Object.<anonymous> (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/bin/alloy:3:1)
          at Module._compile (module.js:409:26)
          at Object.Module._extensions..js (module.js:416:10)
          at Module.load (module.js:343:32)
          at Function.Module._load (module.js:300:12)
          at Function.Module.runMain (module.js:441:10)
          at startup (node.js:139:18)
          at node.js:968:3
      ]
        killed: false,
        code: 1,
        signal: null,
        cmd: '/bin/sh -c "/usr/local/bin/node" "/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/bin/alloy" new --force' }
      2016-04-20T18:11:05.776Z | ERROR  | Error: Command failed: /bin/sh -c "/usr/local/bin/node" "/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/bin/alloy" new --force
      fs.js:844
        return binding.stat(pathModule._makeLong(path));
                       ^
       
      Error: ENOENT: no such file or directory, stat '/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/platforms/windows/project'
          at Error (native)
          at Object.fs.statSync (fs.js:844:18)
          at Object.exports.copyDirSyncRecursive (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/node_modules/wrench/lib/wrench.js:175:23)
          at /Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/commands/new/index.js:95:10
          at Array.forEach (native)
          at Function._.each._.forEach (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)
          at module.exports (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/commands/new/index.js:94:4)
          at Object.<anonymous> (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/alloy.js:113:46)
          at Module._compile (module.js:409:26)
          at Object.Module._extensions..js (module.js:416:10)
          at Module.load (module.js:343:32)
          at Function.Module._load (module.js:300:12)
          at Module.require (module.js:353:17)
          at require (internal/module.js:12:17)
          at Object.<anonymous> (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/bin/alloy:3:1)
          at Module._compile (module.js:409:26)
          at Object.Module._extensions..js (module.js:416:10)
          at Module.load (module.js:343:32)
          at Function.Module._load (module.js:300:12)
          at Function.Module.runMain (module.js:441:10)
          at startup (node.js:139:18)
          at node.js:968:3
       
          at ChildProcess.exithandler (child_process.js:213:12)
          at emitTwo (events.js:87:13)
          at ChildProcess.emit (events.js:172:7)
          at maybeClose (internal/child_process.js:827:16)
          at Socket.<anonymous> (internal/child_process.js:319:11)
          at emitOne (events.js:77:13)
          at Socket.emit (events.js:169:7)
          at Pipe._onclose (net.js:475:12)
      2016-04-20T18:11:05.778Z | TRACE  | Sending exit signal to titanium process:  30367
      

      Expected: Should be able to create a mobile project.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cng Chee Kiat Ng (Inactive)
                Reporter:
                wluu Wilson Luu (Inactive)
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-9664
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration