Forum Discussion
It looks like there is an issue with running the SDK install on the version of NPM you are on. I tried it last week and ran into the same issue you did. I upgraded node.js to version 4.2.2 (which was the latest node.js "mature" version at the time) and then re-installed gulp and the SDK and everything worked fine for me again. Can you try upgrading node.js to to the latests 4.X.X version (looks like that version is 4.2.3
as of this post, but it was 4.2.2 last week when I tested this), then re-install gulp and the lithium-sdk modules:
npm install gulp -g npm install lithium-sdk -g
Thanks,
-Doug
Thanks Doug.
On Mac I actually already had node version 4.2.2 but was still getting the error. On Windows I now upgraded to 4.2.2, re-installed both gulp and lithium-sdk and am still getting the same error when trying to create a project against our responsive dev site. Interestingly enough, when doing the same against our stage environment, project creation works. So the issue could be related to our responsive dev site.
I see that there's 1.0.1 version of lithium-sdk available so will upgrade to that one and then try again.
- DougS9 years agoKhoros Oracle
I am having trouble reproducing the issue on my mac. I was just able to create a project using your responsive stage site on my mac. Here are the details (with path names and hostnames changed of course):
LT3349:lia my.username$ node -v
v4.2.2
LT3349:lia my.username$ npm -v
2.14.7
LT3349:lia my.username$ npm ls -g lithium-sdk --depth=0
/Users/my.username/.nvm/versions/node/v4.2.2/lib
└── lithium-sdk@1.0.1
LT3349:lia my.username$ li create-project
? What is your repository name?
Only lower case characters, numbers or hyphens (-) are allowed. myresponsivestageproject
? What is the URL (include port if exists) to the dev/stage site that you will connect to (beginning with "https://")? https://yourresponsivesite.lithium.com
? Do you have a plugin token (if not press enter)? xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/.gitignore
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/README.md
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/package.json
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/gulpfile.js
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/res [DIR]
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/sdk.conf.json
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/template.server.conf.json
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/web [DIR]
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/res/components [DIR]
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/res/controllers [DIR]
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/res/endpoints [DIR]
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/res/init [DIR]
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/res/lang [DIR]
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/res/layouts [DIR]
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/res/macros [DIR]
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/res/quilts [DIR]
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/res/skins [DIR]
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/web/README.md
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/web/html [DIR]
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/res/components/README.md
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/res/controllers/README.md
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/res/endpoints/README.md
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/res/init/README.md
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/res/lang/README.md
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/res/layouts/README.md
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/res/macros/README.md
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/res/quilts/README.md
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/res/quilts/custom [DIR]
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/res/skins/README.md
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/web/html/assets [DIR]
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/web/html/badge_icons [DIR]
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/web/html/rank_icons [DIR]
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/web/html/survey_icons [DIR]
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/res/quilts/custom/README.md
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/web/html/assets/README.md
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/web/html/badge_icons/README.md
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/web/html/rank_icons/README.md
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/web/html/survey_icons/README.md
[10:11:51] /Users/my.username/lisdk/myresponsivestageproject/server.conf.json
[10:11:51] Starting: npm link lithium-sdk
/Users/my.username/lisdk/myresponsivestageproject/node_modules/lithium-sdk -> /Users/my.username/.nvm/versions/node/v4.2.2/lib/node_modules/lithium-sdk
[10:11:51] Finished: npm link lithium-sdk
[10:11:51] Starting: npm link gulp
/Users/my.username/lisdk/myresponsivestageproject/node_modules/gulp -> /Users/my.username/.nvm/versions/node/v4.2.2/lib/node_modules/gulp
[10:11:52] Finished: npm link gulp
[10:11:52] Starting: npm install
npm WARN package.json myresponsivestageproject@ No license field.
[10:11:57] Finished: npm install
[10:11:57] Created myresponsivestageprojectLet me try on a Windows machine and see if I can't reproduce the problem there.
-Doug
- DougS9 years agoKhoros Oracle
Hi miikka,
Were you able to get this working on your responsive stage site? I tried this on a windows 8 machine and was able to create a project. Here is the output from my attempt:
C:\Users\lithium\AppData\Roaming\npm
└── lithium-sdk@1.0.0
C:\Users\lithium>node -v
v4.2.2
C:\Users\lithium>npm -v
2.14.7
C:\Users\lithium>npm ls -g lithium-sdk --depth=0
C:\Users\lithium\AppData\Roaming\npm
└── lithium-sdk@1.0.0
C:\Users\lithium>li create-project
? What is your repository name?
Only lower case characters, numbers or hyphens (-) are allowed. myrespstagesite
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
? What is the URL (include port if exists) to the dev/stage site that you will c
onnect to (beginning with "https://")? https://myrespstagesite.stage.lithium.com
? Do you have a plugin token (if not press enter)? () xxxx-xxxx-xxxx-xxxx-xx
? Do you have a plugin token (if not press enter)? () xxxx-xxxx-xxxx-xxxx-xx
? Do you have a plugin token (if not press enter)? () xxxx-xxxx-xxxx-xxxx-xx
? Do you have a plugin token (if not press enter)? () xxxx-xxxx-xxxx-xxxx-xx
? Do you have a plugin token (if not press enter)? () xxxx-xxxx-xxxx-xxxx-xx
? Do you have a plugin token (if not press enter)? () xxxx-xxxx-xxxx-xxxx-xx
? Do you have a plugin token (if not press enter)? () xxxx-xxxx-xxxx-xxxx-xx
? Do you have a plugin token (if not press enter)? () xxxx-xxxx-xxxx-xxxx-xx
? Do you have a plugin token (if not press enter)? () xxxx-xxxx-xxxx-xxxx-xx
? Do you have a plugin token (if not press enter)? () xxxx-xxxx-xxxx-xxxx-xx
? Do you have a plugin token (if not press enter)? () xxxx-xxxx-xxxx-xxxx-xx
? Do you have a plugin token (if not press enter)? () xxxx-xxxx-xxxx-xxxx-xx
? Do you have a plugin token (if not press enter)? xxxx-xxxx-xxxx-xxxx-xxxxxxxx
[13:51:49] C:\Users\lithium\myrespstagesite\gulpfile.js
[13:51:49] C:\Users\lithium\myrespstagesite\res [DIR]
[13:51:49] C:\Users\lithium\myrespstagesite\sdk.conf.json
[13:51:49] C:\Users\lithium\myrespstagesite\template.server.conf.json
[13:51:49] C:\Users\lithium\myrespstagesite\web [DIR]
[13:51:49] C:\Users\lithium\myrespstagesite\.gitignore
[13:51:49] C:\Users\lithium\myrespstagesite\package.json
[13:51:49] C:\Users\lithium\myrespstagesite\README.md
[13:51:49] C:\Users\lithium\myrespstagesite\res\components [DIR]
[13:51:49] C:\Users\lithium\myrespstagesite\res\controllers [DIR]
[13:51:49] C:\Users\lithium\myrespstagesite\res\endpoints [DIR]
[13:51:49] C:\Users\lithium\myrespstagesite\res\init [DIR]
[13:51:49] C:\Users\lithium\myrespstagesite\res\lang [DIR]
[13:51:49] C:\Users\lithium\myrespstagesite\res\layouts [DIR]
[13:51:49] C:\Users\lithium\myrespstagesite\res\macros [DIR]
[13:51:49] C:\Users\lithium\myrespstagesite\res\quilts [DIR]
[13:51:49] C:\Users\lithium\myrespstagesite\res\skins [DIR]
[13:51:49] C:\Users\lithium\myrespstagesite\web\html [DIR]
[13:51:49] C:\Users\lithium\myrespstagesite\web\README.md
[13:51:49] C:\Users\lithium\myrespstagesite\res\components\README.md
[13:51:49] C:\Users\lithium\myrespstagesite\res\controllers\README.md
[13:51:49] C:\Users\lithium\myrespstagesite\res\endpoints\README.md
[13:51:49] C:\Users\lithium\myrespstagesite\res\init\README.md
[13:51:49] C:\Users\lithium\myrespstagesite\res\lang\README.md
[13:51:49] C:\Users\lithium\myrespstagesite\res\layouts\README.md
[13:51:49] C:\Users\lithium\myrespstagesite\res\macros\README.md
[13:51:49] C:\Users\lithium\myrespstagesite\res\quilts\custom [DIR]
[13:51:49] C:\Users\lithium\myrespstagesite\res\quilts\README.md
[13:51:49] C:\Users\lithium\myrespstagesite\res\skins\README.md
[13:51:49] C:\Users\lithium\myrespstagesite\web\html\assets [DIR]
[13:51:49] C:\Users\lithium\myrespstagesite\web\html\badge_icons [DIR]
[13:51:49] C:\Users\lithium\myrespstagesite\web\html\rank_icons [DIR]
[13:51:49] C:\Users\lithium\myrespstagesite\res\quilts\custom\README.md
[13:51:49] C:\Users\lithium\myrespstagesite\web\html\assets\README.md
[13:51:49] C:\Users\lithium\myrespstagesite\web\html\badge_icons\README.md
[13:51:49] C:\Users\lithium\myrespstagesite\web\html\rank_icons\README.md
[13:51:49] C:\Users\lithium\myrespstagesite\server.conf.json
[13:51:49] Starting: npm link lithium-sdk
C:\Users\lithium\myrespstagesite\node_modules\lithium-sdk -> C:\Users\lithium\App
Data\Roaming\npm\node_modules\lithium-sdk
[13:51:51] Finished: npm link lithium-sdk
[13:51:51] Starting: npm link gulp
C:\Users\lithium\myrespstagesite\node_modules\gulp -> C:\Users\lithium\AppData\Ro
aming\npm\node_modules\gulp
[13:51:52] Finished: npm link gulp
[13:51:52] Starting: npm install
npm WARN package.json myrespstagesite@ No license field.
[13:52:09] Finished: npm install
[13:52:10] Created myrespstagesiteIf you are still unable to get the project to create, can you send me what windows OS/version you are using, as well as what version of Python, Windows SDK, and Visual Studio C++ libraries you have installed?
Thanks,
-Doug
- miikka9 years agoMaven
Hi Doug,
just tried again after updating gulp (now version 3.8.8) and lithium-sdk (now version 1.0.0) and unfortunately the issue still persists both on Mac and on Windows. Mac OS X version is 10.11.2 and Windows is Windows 10 version 1511. On Mac I have Python 2.7.10 and on Windows it's 2.7.3
This is very strange as creating a project against our regular stage instance works on both platforms, it's just that it does not work against the responsive dev site.
Cheers,
Miikka
Related Content
- 9 months ago
- 2 years ago
- 2 years ago