Forums de discussion
No globally installed themelet found.
Alessandro Candini, modifié il y a 7 années.
No globally installed themelet found.
Regular Member Publications: 130 Date d'inscription: 17/10/15 Publications récentes
I've followed this guide to create a themelet.
Everything seems fine, including the npm link command:
But I get a problem trying to install it into my theme:
Why my themelet is not found? Is there a problem with nvm maybe?
Everything seems fine, including the npm link command:
user@host:/home/test/liferayworkspace/themelets/test-themelet$ ll ~/.nvm/versions/node/v6.2.1/lib/node_modules/
totale 24K
lrwxrwxrwx 1 user users 87 giu 8 15:33 test-themelet -> /home/test/liferayworkspace/themelets/test-themelet/
But I get a problem trying to install it into my theme:
user@host:$ gulp extend
[15:28:02] Using gulpfile /home/test/liferayworkspace/themes/test-theme/gulpfile.js
[15:28:02] Starting 'extend'...
? What kind of theme asset would you like to extend? Themelet
? Where would you like to search for themelets? Search globally installed npm modules (development purposes only)
[15:28:04] No globally installed themelet found. Install some with "npm i -g [name]"
Why my themelet is not found? Is there a problem with nvm maybe?
Byrån Zaugg, modifié il y a 7 années.
RE: No globally installed themelet found.
Expert Publications: 252 Date d'inscription: 06/04/12 Publications récentes
Could I have you run two commands, to help troubleshoot your setup?
$ node -e "console.log(process.env.NODE_PATH)"
$ npm root -g
Alessandro Candini, modifié il y a 7 années.
RE: No globally installed themelet found.
Regular Member Publications: 130 Date d'inscription: 17/10/15 Publications récentes
Sure:
Maybe that undefined should be fixed in some way?
user@host:$ node -e "console.log(process.env.NODE_PATH)"
undefined
user@host:$ npm root -g
/home/user/.nvm/versions/node/v6.2.1/lib/node_modules
Maybe that undefined should be fixed in some way?
Nate Cavanaugh, modifié il y a 7 années.
RE: No globally installed themelet found.
Junior Member Publications: 94 Date d'inscription: 27/11/06 Publications récentes
Hi Alessando,
I've gone ahead and commented on the Github issue.
Let us know if you need anything else!
I've gone ahead and commented on the Github issue.
Let us know if you need anything else!
Alessandro Candini, modifié il y a 7 années.
RE: No globally installed themelet found. (Réponse)
Regular Member Publications: 130 Date d'inscription: 17/10/15 Publications récentes
Thank you Nate, as you suggested on github I solved adding to my ~/.bashrc file the following line:
After that I got:
Thank you!
export NODE_PATH="$NODE_PATH:$HOME/.nvm/versions/node/v6.2.1/lib/node_modules/"
After that I got:
user@host:$ node -e "console.log(process.env.NODE_PATH)"
:/home/user/.nvm/versions/node/v6.2.1/lib/node_modules/
and I was able to install my themelet.Thank you!