Forum Discussion

gstelang's avatar
gstelang
Mentor
10 years ago

[SDK] error on doing li create-project

Hey folks,

 

I am working on a project to override some of the CSS components.

 

I am using the node lithium SDK and I get the error when I do : li create-project with both internal stage URL and the one from lithium ({lithium-link}.stage.lithium.com). I am on OSX 10.10.5

 

node --version
v4.2.1

npm --version
2.14.7

npm ls -g lithium-sdk --depth=0
/Users/<user>/.nvm/versions/node/v4.2.1/lib
└── lithium-sdk@1.0.2

 

? What is your repository name?
Only lower case characters, numbers or hyphens (-) are allowed. lithium
? What is the URL (include port if exists) to the dev/stage site that you will connect to (beginning with "https://")? <stage https URL>
? Do you have a plugin token (if not press enter)? <token>
readline.js:924
throw err;
^

Error: Module did not self-register.
at Error (native)
at Object.Module._extensions..node (module.js:460:18)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at bindings (/usr/local/lib/node_modules/lithium-sdk/node_modules/xml2json/node_modules/node-expat/node_modules/bindings/bindings.js:76:44)
at Object.<anonymous> (/usr/local/lib/node_modules/lithium-sdk/node_modules/xml2json/node_modules/node-expat/lib/node-expat.js:4:32)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)

5 Replies

  • OlivierS's avatar
    OlivierS
    Lithium Alumni (Retired)
    10 years ago

    gstelang do you get the same error if just press enter when it prompts for your token? (you can add your token later on in the server.conf.json file)

  • gstelang's avatar
    gstelang
    Mentor
    10 years ago

    OlivierS 

     

    Yeah - I just tried without the upload token and by giving the same https URL. I see the same stack.

  • OlivierS's avatar
    OlivierS
    Lithium Alumni (Retired)
    10 years ago

    gstelang I'm not an expert. But my installation on my iMac worked just fine (well, it took me some time as at first the lithium-sdk returned lots of errors / warnings).

     

    I'm using a more recent version of node and npm, maybe you could try to upgrade and re-install the sdk?

     

    iMac:~ salmoliv$ node --version
    v4.3.1
    iMac:~ salmoliv$ npm --version
    2.14.12
    iMac:~ salmoliv$ npm ls -g lithium-sdk --depth=0
    /usr/local/lib
    └── lithium-sdk@1.0.2
  • gstelang's avatar
    gstelang
    Mentor
    10 years ago

    OlivierS

     

    Nope - doesn't work.

     

    I think when I go to the stage site i.e https://{<link>.stage.lithium.com/ through the browser, I have to enter some credentials before I can even browse the URL. I think that's causing the issue but then I also get the same error if I go to our internal test URL which is a proxy to stage.lithium.com. I am not really sure what's causing this.

  • bowenli's avatar
    bowenli
    Ace
    9 years ago
    I have a docker image for SDK, you can use it in any platform, Mac, windows, Linux etc.

    run command : docker pull bowen31337/lithium-sdk