3 Replies Latest reply on Sep 12, 2017 1:21 AM by dupatel RSS
    athompson Explorer

    Error on creating a new project

    Hi All,

     

    I'm helping someone with getting Studio up and running on a Mac and they are getting the issue described in these posts (here and here) where you just getting the spinning hexagon and nothing happens:

     

    issue-spinny-thingmark-after-create-project.JPG

     

    Looking through the log file, it appears that the projects are missing the gulp.js module as shown:

     

    11/9/17, 9:24:10 am AEST] info: [twx-studio:projectHelper] Creating ves-ar-extension app: Welcome

    [11/9/17, 9:24:10 am AEST] Error Initializing { Error: Cannot find module 'gulp'

        at Function.Module._resolveFilename (module.js:469:15)

        at Function.Module._load (module.js:417:25)

        at Module.require (module.js:497:17)

        at require (internal/module.js:20:19)

        at Object.<anonymous> (/Users/tosin/Documents/ThingWorxStudio/Projects/Welcome/gulp-shared.js:7:12)

        at Module._compile (module.js:570:32)

        at Object.Module._extensions..js (module.js:579:10)

        at Module.load (module.js:487:32)

        at tryModuleLoad (module.js:446:12)

        at Function.Module._load (module.js:438:3) code: 'MODULE_NOT_FOUND' }

    [11/9/17, 9:24:10 am AEST] error: [twx-studio:projectHelper] initializeApp - oncreate failed Error: Cannot find module 'gulp'

        at Function.Module._resolveFilename (module.js:469:15)

        at Function.Module._load (module.js:417:25)

        at Module.require (module.js:497:17)

        at require (internal/module.js:20:19)

        at Object.<anonymous> (/Users/tosin/Documents/ThingWorxStudio/Projects/Welcome/gulp-shared.js:7:12)

        at Module._compile (module.js:570:32)

        at Object.Module._extensions..js (module.js:579:10)

        at Module.load (module.js:487:32)

        at tryModuleLoad (module.js:446:12)

        at Function.Module._load (module.js:438:3)

    error: [twx-studio:sockets] Add project error Error: Cannot find module 'gulp'

        at Function.Module._resolveFilename (module.js:469:15)

        at Function.Module._load (module.js:417:25)

        at Module.require (module.js:497:17)

        at require (internal/module.js:20:19)

        at Object.<anonymous> (/Users/tosin/Documents/ThingWorxStudio/Projects/Welcome/gulp-shared.js:7:12)

        at Module._compile (module.js:570:32)

        at Object.Module._extensions..js (module.js:579:10)

        at Module.load (module.js:487:32)

        at tryModuleLoad (module.js:446:12)

        at Function.Module._load (module.js:438:3)

     

    We've tried re-installing Studio, but it keeps throwing this error for new project and the three default tutorial projects that come with Studio. 

     

    Any ideas or suggestions?

     

    Many thanks,

     

    Allan

      • Re: Error on creating a new project
        dupatel Creator

        Allan Thompson : Could you please confirm you do not have Node.js installed externally. Ideally, Node.js gets installed with the Studio installer and there has been issue found in case there is an external Node.js setup . So, please check and remove external Node.js instance if installed.

         

        Also, could you please try deleting the folder ThingworxStudio inside directory  C:\Users\XXXX\AppData\Roaming and then try installing again.

         

        -Durgesh