<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Error in installing generator-liferay-theme</title>
  <link rel="self" href="https://uat.liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=117649955" />
  <subtitle>Error in installing generator-liferay-theme</subtitle>
  <id>https://uat.liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=117649955</id>
  <updated>2026-08-02T07:56:21Z</updated>
  <dc:date>2026-08-02T07:56:21Z</dc:date>
  <entry>
    <title>RE: Error in installing generator-liferay-theme</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117678699" />
    <author>
      <name>Mirto Silvio Busico</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117678699</id>
    <updated>2019-11-06T11:38:07Z</updated>
    <published>2019-11-06T11:38:07Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Another failed attempt&lt;br&gt;Installed node from node site and not from distribution&lt;br&gt;Modules are globally installed&lt;pre&gt;&lt;code&gt;sysop@vocsem:~$ npm list -g --depth=0
/home/sysop/node/lib
├── bower@1.8.8
├── generator-liferay-theme@7.0.6
├── gulp@4.0.2
├── npm@6.13.0
└── yo@3.1.0

&lt;/code&gt;&lt;/pre&gt;Installing or reinstalling generator-liferay-theme always gives the three missing dependencies&lt;br&gt;&lt;pre&gt;&lt;code&gt;sysop@vocsem:~$ npm install -g generator-liferay-theme@7.0.6
npm WARN deprecated CSSselect@0.4.1: the module is now available as 'css-select'
npm WARN deprecated CSSwhat@0.4.7: the module is now available as 'css-what'
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated natives@1.1.6: This module relies on Node.js's internals and will break at some point. Do not use it, and update to graceful-fs@4.x.
npm WARN deprecated formatio@1.1.1: This package is unmaintained. Use @sinonjs/formatio instead
npm WARN deprecated samsam@1.1.2: This package has been deprecated in favour of @sinonjs/samsam
npm WARN generator-liferay-theme@7.0.6 requires a peer of bower@&amp;amp;gt;=1.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN generator-liferay-theme@7.0.6 requires a peer of gulp@&amp;amp;gt;=3.5.0 but none is installed. You must install peer dependencies yourself.
npm WARN generator-liferay-theme@7.0.6 requires a peer of yo@&amp;amp;gt;=1.0.0 but none is installed. You must install peer dependencies yourself.&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;+ generator-liferay-theme@7.0.6
updated 1 package in 10.46s

&lt;/code&gt;&lt;/pre&gt;Where is&amp;nbsp;generator-liferay-theme looking for modules?&lt;br&gt;Attached more information in the console transcript&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Mirto Silvio Busico</dc:creator>
    <dc:date>2019-11-06T11:38:07Z</dc:date>
  </entry>
  <entry>
    <title>RE: Error in installing generator-liferay-theme</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117673918" />
    <author>
      <name>Mirto Silvio Busico</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117673918</id>
    <updated>2019-11-05T16:58:11Z</updated>
    <published>2019-11-05T16:58:11Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Well ,&lt;br&gt;I discovered that that node-sass is broken at the global level because of a missing bower&lt;pre&gt;&lt;code&gt;sysop@vocsem:~/temi$ npm list|grep sass
├─┬ node-sass@4.13.0
│ ├─┬ sass-graph@2.2.4
sysop@vocsem:~/temi$ npm list --global|grep sass
├─┬ node-sass@4.13.0
│ ├─┬ sass-graph@2.2.4
npm ERR! peer dep missing: bower@&amp;amp;gt;=1.3.0, required by generator-liferay-theme@7.0.6
sysop@vocsem:~/temi$

&lt;/code&gt;&lt;/pre&gt;So seems that generator-liferay-theme ignores local modules&lt;br&gt;Also strange is that trying to reinstall globally bower seems installing correctly but the above command (node list --global) gives a different error&lt;br&gt;&lt;pre&gt;&lt;code&gt;sysop@vocsem:~/temi$ npm install -g bower
npm WARN deprecated bower@1.8.8: We don't recommend using Bower for new projects. Please consider Yarn and Webpack or Parcel. You can read how to migrate legacy project here: https://bower.io/blog/2017/how-to-migrate-away-from-bower/
/home/sysop/.npm-packages/bin/bower -&amp;amp;gt; /home/sysop/.npm-packages/lib/node_modules/bower/bin/bower
/home/sysop/.npm-packages/lib
└── bower@1.8.8&amp;amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;sysop@vocsem:~/temi$ node list --global|grep sass
module.js:549
&amp;amp;nbsp; &amp;amp;nbsp; throw err;
&amp;amp;nbsp; &amp;amp;nbsp; ^&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;Error: Cannot find module '/home/sysop/temi/list'
&amp;amp;nbsp; &amp;amp;nbsp; at Function.Module._resolveFilename (module.js:547:15)
&amp;amp;nbsp; &amp;amp;nbsp; at Function.Module._load (module.js:474:25)
&amp;amp;nbsp; &amp;amp;nbsp; at Function.Module.runMain (module.js:693:10)
&amp;amp;nbsp; &amp;amp;nbsp; at startup (bootstrap_node.js:188:16)
&amp;amp;nbsp; &amp;amp;nbsp; at bootstrap_node.js:609:3
sysop@vocsem:~/temi$&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;Any suggestion to solve this nightmare?&lt;br&gt;Can&amp;nbsp;generator-liferay-theme be forced to use local modules?&lt;br&gt;&lt;br&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;Tried another clean install using only global installationgenerator-liferay-theme gives the three unmet peer dependency; but "yo liferay theme" tries (and fail) to install what it needs&lt;br&gt;Attached here a file containing the versions og the global module installed and the complete transcripf of "yo liferay-theme"&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Mirto Silvio Busico</dc:creator>
    <dc:date>2019-11-05T16:58:11Z</dc:date>
  </entry>
  <entry>
    <title>RE: Error in installing generator-liferay-theme</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117660277" />
    <author>
      <name>Mirto Silvio Busico</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117660277</id>
    <updated>2019-11-04T18:19:11Z</updated>
    <published>2019-11-04T18:19:11Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Thanks ChristophI have a strange behaviour.&lt;br&gt;Following&amp;nbsp;the step described below I was able to have a generator -liferay-theme installed without errors.But the theme generation gives an error on sass and build failsI'm using Ubuntu 18.04.3. The username is sysop and the home directory is /home/sysopI created a .npmrc file in&amp;nbsp;/home/sysop containing&lt;pre&gt;&lt;code&gt;prefix=/home/sysop/.npm-packages&lt;/code&gt;&lt;/pre&gt;I added in /home/sysop/.profile these lines&lt;pre&gt;&lt;code&gt;NPM_PACKAGES=/home/sysop/.npm-packages
&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;PATH=${PATH}:${NPM_PACKAGES}/bin&lt;/code&gt;&lt;/pre&gt;Then I installed npm distribuited with the OS&lt;br&gt;&lt;pre&gt;&lt;code&gt;sudo apt install npm&lt;/code&gt;&lt;/pre&gt;After various attempts (I'm using a virtual machine; so I do an attempt then revert to a snapshot) I discovered that module have to be installed globally and locally.In this situation the&amp;nbsp;generator -liferay-theme can be installed locally without errors (stil installing globally gives the three unmet dependencies)I worked inside a directory named /home/sysop/temiThe commands are:&lt;br&gt;&lt;pre&gt;&lt;code&gt;cd ~/temi&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;npm install -g yo&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;npm install -g gulp&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;npm install -g bower&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;npm install -g node-gyp&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;npm install -g pangyp&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;npm install -g node-sass&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;npm install yo&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;npm install gulp&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;npm install bower&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;npm install node-gyp&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;npm install pangyp&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;npm install node-sass&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;npm install generator-liferay-theme@7.0.6
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;Now I can generate a theme; but there is a sass error. The relevant lines are:&lt;pre&gt;&lt;code&gt;sysop@vocsem:~/temi$ yo liferay-theme&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;_-----_
&amp;amp;nbsp; &amp;amp;nbsp; | &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; | &amp;amp;nbsp; &amp;amp;nbsp;.--------------------------.
&amp;amp;nbsp; &amp;amp;nbsp; |--(o)--| &amp;amp;nbsp; &amp;amp;nbsp;| &amp;amp;nbsp;Welcome to the splendid |
&amp;amp;nbsp; &amp;amp;nbsp;`---------´ &amp;amp;nbsp; | Liferay Theme generator! |
&amp;amp;nbsp; &amp;amp;nbsp; ( _´U`_ ) &amp;amp;nbsp; &amp;amp;nbsp;'--------------------------'
&amp;amp;nbsp; &amp;amp;nbsp; /___A___\ &amp;amp;nbsp; &amp;amp;nbsp;
&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;| &amp;amp;nbsp;~ &amp;amp;nbsp;| &amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp;
&amp;amp;nbsp; &amp;amp;nbsp;__'.___.'__ &amp;amp;nbsp;&amp;amp;nbsp;
&amp;amp;nbsp;´ &amp;amp;nbsp; ` &amp;amp;nbsp;|° ´ Y `&amp;amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;? What would you like to call your theme? Base MSB
? Would you like to use this as the themeId? base-msb
? Which version of Liferay is this theme for? 7.0
? Do you need Compass support? (requires Ruby and the Sass gem to be installed) No
&amp;amp;nbsp; &amp;amp;nbsp;create package.json
&amp;amp;nbsp; &amp;amp;nbsp;create bower.json
&amp;amp;nbsp; &amp;amp;nbsp;create .gitignore
&amp;amp;nbsp; &amp;amp;nbsp;create gulpfile.js
&amp;amp;nbsp; &amp;amp;nbsp;create src/css/custom.css
&amp;amp;nbsp; &amp;amp;nbsp;create src/META-INF/context.xml
&amp;amp;nbsp; &amp;amp;nbsp;create src/WEB-INF/liferay-plugin-package.properties
&amp;amp;nbsp; &amp;amp;nbsp;create src/WEB-INF/src/resources-importer/readme.txt
&amp;amp;nbsp; &amp;amp;nbsp;create src/WEB-INF/src/resources-importer/sitemap.json&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;
I'm all done. Running npm install &amp;amp;amp; bower install for you to install the required dependencies. If this fails, try running the command yourself.
[snip]&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;npm WARN prefer global pangyp@2.3.3 should be installed with -g&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&amp;amp;gt; node-sass@2.1.1 install /home/sysop/temi/base-msb-theme/node_modules/node-sass
&amp;amp;gt; node scripts/install.js&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;Can not download file from https://raw.githubusercontent.com/sass/node-sass-binaries/v2.1.1/linux-x64-node-8.10/binding.node&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&amp;amp;gt; node-sass@2.1.1 postinstall /home/sysop/temi/base-msb-theme/node_modules/node-sass
&amp;amp;gt; node scripts/build.js&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;module.js:549
&amp;amp;nbsp; &amp;amp;nbsp; throw err;
&amp;amp;nbsp; &amp;amp;nbsp; ^&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;Error: Cannot find module '/home/sysop/temi/base-msb-theme/node_modules/node-sass/node_modules/pangyp/bin/node-gyp'
&amp;amp;nbsp; &amp;amp;nbsp; at Function.Module._resolveFilename (module.js:547:15)
&amp;amp;nbsp; &amp;amp;nbsp; at Function.Module._load (module.js:474:25)
&amp;amp;nbsp; &amp;amp;nbsp; at Function.Module.runMain (module.js:693:10)
&amp;amp;nbsp; &amp;amp;nbsp; at startup (bootstrap_node.js:188:16)
&amp;amp;nbsp; &amp;amp;nbsp; at bootstrap_node.js:609:3
Build failed
base-msb@0.0.0 /home/sysop/temi/base-msb-theme
├── async@0.9.2&amp;amp;nbsp;
├─┬ c[email=mailto:check-source-formatting@1.1.10]heck-source-formatting@1.1.10&amp;amp;nbsp;[/email]
&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;[snip]&lt;/code&gt;&lt;/pre&gt;I'm confused: I don't know what is missing.Any hint?&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Mirto Silvio Busico</dc:creator>
    <dc:date>2019-11-04T18:19:11Z</dc:date>
  </entry>
  <entry>
    <title>RE: Error in installing generator-liferay-theme</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117661184" />
    <author>
      <name>Christoph Rabel</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117661184</id>
    <updated>2019-11-04T16:54:21Z</updated>
    <published>2019-11-04T16:54:21Z</published>
    <summary type="html">I am not sure how restrictive it is, but you have bower 1.8.8 installed globally. Maybe you need to install a 1.3 version? Just guessing here. If that works, you could try the same with gulp and yo.  At least for gulp and yo the major version changed.</summary>
    <dc:creator>Christoph Rabel</dc:creator>
    <dc:date>2019-11-04T16:54:21Z</dc:date>
  </entry>
  <entry>
    <title>Error in installing generator-liferay-theme</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117649954" />
    <author>
      <name>Mirto Silvio Busico</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117649954</id>
    <updated>2019-11-03T18:21:51Z</updated>
    <published>2019-11-03T18:21:51Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi all,&lt;br&gt;&lt;br&gt;I'm trying to install&amp;nbsp;generator-liferay-theme for Liferay 7.0.6 GA7&lt;br&gt;&lt;br&gt;Installation says I'm missing bower yo and gulpBut these modules are globally installed&lt;br&gt;&lt;br&gt;Here the transcript:&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;sysop@vocsem:~/.npm-packages$ echo $prefix
/home/sysop/.npm-packages
sysop@vocsem:~/.npm-packages$ [b]npm install -g bower[/b]
npm WARN deprecated bower@1.8.8: We don't recommend using Bower for new projects. Please consider Yarn and Webpack or Parcel. You can read how to migrate legacy project here: https://bower.io/blog/2017/how-to-migrate-away-from-bower/
/home/sysop/.npm-packages/bin/bower -&amp;amp;gt; /home/sysop/.npm-packages/lib/node_modules/bower/bin/bower
[b]/home/sysop/.npm-packages/lib
└── bower@1.8.8[/b]&amp;amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;sysop@vocsem:~/.npm-packages$ [b]npm install -g yo[/b]
loadDep:yosay → 304 &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; ▐ ╢█████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
npm WARN deprecated cross-spawn-async@2.2.5: cross-spawn no longer requires a build toolchain, use it instead
/home/sysop/.npm-packages/bin/yo -&amp;amp;gt; /home/sysop/.npm-packages/lib/node_modules/yo/lib/cli.js
/home/sysop/.npm-packages/bin/yo-complete -&amp;amp;gt; /home/sysop/.npm-packages/lib/node_modules/yo/lib/completion/index.js&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&amp;amp;gt; yo@3.1.0 postinstall /home/sysop/.npm-packages/lib/node_modules/yo
&amp;amp;gt; yodoctor&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;
Yeoman Doctor
Running sanity checks on your system&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;✔ No .bowerrc file in home directory
✔ Global configuration file is valid
✔ NODE_PATH matches the npm root
✔ No .yo-rc.json file in home directory
✔ Node.js version
✔ npm version
✔ yo version&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;Everything looks all right!
[b]/home/sysop/.npm-packages/lib
└── yo@3.1.0&amp;amp;nbsp;[/b]&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;sysop@vocsem:~/.npm-packages$ [b]npm install -g gulp[/b]
/home/sysop/.npm-packages/bin/gulp -&amp;amp;gt; /home/sysop/.npm-packages/lib/node_modules/gulp/bin/gulp.js
[b]/home/sysop/.npm-packages/lib
└── gulp@4.0.2[/b]&amp;amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;npm WARN optional Skipping failed optional dependency /gulp/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.9
sysop@vocsem:~/.npm-packages$ [b]npm install -g generator-liferay-theme@7.0.6[/b]
npm WARN deprecated CSSselect@0.4.1: the module is now available as 'css-select'
npm WARN deprecated CSSwhat@0.4.7: the module is now available as 'css-what'
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated natives@1.1.6: This module relies on Node.js's internals and will break at some point. Do not use it, and update to graceful-fs@4.x.
npm WARN deprecated formatio@1.1.1: This package is unmaintained. Use @sinonjs/formatio instead
npm WARN deprecated samsam@1.1.2: This package has been deprecated in favour of @sinonjs/samsam
[b]/home/sysop/.npm-packages/lib
├── UNMET PEER DEPENDENCY bower@&amp;amp;gt;=1.3.0
├── generator-liferay-theme@7.0.6&amp;amp;nbsp;
├── UNMET PEER DEPENDENCY gulp@&amp;amp;gt;=3.5.0
└── UNMET PEER DEPENDENCY yo@&amp;amp;gt;=1.0.0[/b]&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;npm WARN generator-liferay-theme@7.0.6 requires a peer of bower@&amp;amp;gt;=1.3.0 but none was installed.
npm WARN generator-liferay-theme@7.0.6 requires a peer of gulp@&amp;amp;gt;=3.5.0 but none was installed.
npm WARN generator-liferay-theme@7.0.6 requires a peer of yo@&amp;amp;gt;=1.0.0 but none was installed.
sysop@vocsem:~/.npm-packages$&amp;amp;nbsp;

&lt;/code&gt;&lt;/pre&gt;What I'm doing wrong?&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Mirto Silvio Busico</dc:creator>
    <dc:date>2019-11-03T18:21:51Z</dc:date>
  </entry>
</feed>
