Managed to install the SDK but cannot retrieve the plugin at studio:
I get the following errors:
MPLithiumSDK IanATJMP$ li export-studio-plugin module.js:471 throw err; ^ Error: Cannot find module 'has-color' 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> (/usr/local/lib/node_modules/lithium-sdk/node_modules/gulp-util/node_modules/chalk/index.js:4:16) 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) mlaXXX:JMPLithiumSDK IanATJMP$
Not sure where to look for an answer to that one. How do I resolve this? There's nothing in troubleshooting section.
In fact, even just using the li command to get help gives me the same errors.
Solved! Go to Solution.
I faced the same error message some days ago when I tried different Lithium-SDK commands.
I solved the issue by changing the permissions of some folders in my OS (MacOS El Captain). See the troubleshooting section here. After changing the permissions I re-run the npm install commands for gulp and the lithium-sdk and everything works as expected.
Maybe this will also helps you to get your SDK working.
Looks like there were a few issues:
Couldn't give myself access to that last one, so I chmod subfolders of this as needed to get around the access errors.