Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
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:
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
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
Hi Durgesh,
How do I check the Node.js is installed on a Mac? Unfortunately this user is on a Mac and I don't have any experience with this platform.
Thanks,
Allan
Allan Thompson : I would suggest to uninstall Studio ( this will make sure Nodejs installed as part of Studio setup is removed) and then run command to Test Node . To see if external Node is installed, type node -v
in Terminal. This should print the version number so you’ll see something like this v0.10.31
.
This way we can ensure external Node exists or not and narrow down the issue.
-Durgesh