Forum Discussion

sachin's avatar
sachin
Mentor
9 years ago

SDK getting error while creating project

 Hi I am running SDK in windows. after installation when I run the create-project I get below error . Can some one help. Thanks

readline.js:924
throw err;
^
Error: Could not locate the bindings file. Tried:
→ C:\Users\sachin_katiyar\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\node-expat\build\node_expat.node
→ C:\Users\sachin_katiyar\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\node-expat\build\Debug\node_expat.node
→ C:\Users\sachin_katiyar\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\node-expat\build\Release\node_expat.node
→ C:\Users\sachin_katiyar\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\node-expat\out\Debug\node_expat.node
→ C:\Users\sachin_katiyar\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\node-expat\Debug\node_expat.node
→ C:\Users\sachin_katiyar\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\node-expat\out\Release\node_expat.node
→ C:\Users\sachin_katiyar\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\node-expat\Release\node_expat.node
→ C:\Users\sachin_katiyar\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\node-expat\build\default\node_expat.node
→ C:\Users\sachin_katiyar\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\node-expat\compiled\5.0.0\win32\x64\node_expat.node
at bindings (C:\Users\sachin_katiyar\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\bindings\bindings.js:88:9)
at Object.<anonymous> (C:\Users\sachin_katiyar\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\node-expat\lib\node-expat.js:4:32)
at Module._compile (module.js:425:26)
at Object.Module._extensions..js (module.js:432:10)
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 Object.<anonymous> (C:\Users\sachin_katiyar\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\xml2json\lib\xml2json.js:1:75)
at Module._compile (module.js:425:26)

 

  • MeghaM's avatar
    MeghaM
    Lithium Alumni (Retired)

    Hi,

    Can you send the relevant portion of the npm-debug.log? Also can you verify the lithium-sdk version you see with this command

    npm ls -g lithium-sdk --depth=0
    /usr/local/lib
    └── lithium-sdk@1.0.0 

    If the latest version is not returned as 1.0.0 and npm install lithum-sdk does not seem to pull the latest version for you, try below:

    npm install -g https://registry.npmjs.org/lithium-sdk/-/lithium-sdk-1.0.0.tgz
    

    Hope this works for you.

    • MeghaM's avatar
      MeghaM
      Lithium Alumni (Retired)

      Can you also make sure the node and npm version is atleast 4.X.X and 2.14.X respectively?

      node -v
      v4.2.2
      npm -v 
      2.14.7
      

      On the windows environment the python dependency must be Python v2.7.3Let me know more about the development environment you are working on, Windows OS version, Python and Visual Studio versions and finally also node and npm versions.