Git Product home page Git Product logo

Comments (5)

MarkusBordihn avatar MarkusBordihn commented on May 2, 2024

The BuildTools.getModulePath search for all registered module paths, so it should not a problem with npm v2 vs npm v3.

But I found out that it doesn't search on the global module path, so all modules which are installed with "npm install -g ..."

I have implemented a fix in 1.0.38, please let me know if this fix works.

If not please tell me your OS and the path where your "google-closure-library" and "closure-templates" folders are located.

from closure-builder.

iyegoroff avatar iyegoroff commented on May 2, 2024

Just checked latest version. These errors still occur with the following output:

Cannot find module: google-closure-library in: [ '/usr/local/lib/node_modules/gulp/bin/node_modules',
  '/usr/local/lib/node_modules/gulp/node_modules',
  '/usr/local/lib/node_modules',
  '/usr/local/node_modules',
  '/usr/node_modules',
  '/node_modules' ]
Google Closure Library was not found!
Cannot find module: closure-templates in: [ '/usr/local/lib/node_modules/gulp/bin/node_modules',
  '/usr/local/lib/node_modules/gulp/node_modules',
  '/usr/local/lib/node_modules',
  '/usr/local/node_modules',
  '/usr/node_modules',
  '/node_modules' ]
Google Closure Template was not found!

I'm using Mac OS X El Capitan and the structure of my app looks like this:

my_app/
____ node_modules/
________ closure-builder/
________ closure-templates/
________ google-closure-compiler/
____ src/
____ gulpfile.js (closure-builder is being called from here)

from closure-builder.

MarkusBordihn avatar MarkusBordihn commented on May 2, 2024

Thanks for the details. Its seems that this package its currently not 100% compatible with gulp.

As work around you could install "closure-templates" and "google-closure-library" as global package with:
npm install -g closure-templates
npm install -g google-closure-library

The "closure-builder" package was designed as stand alone application.
To fully support all features in gulp you would need a gulp plugin version, which is currently not available.

from closure-builder.

iyegoroff avatar iyegoroff commented on May 2, 2024

Ok. Thank you for clarification.

from closure-builder.

MarkusBordihn avatar MarkusBordihn commented on May 2, 2024

The latest version no longer depends on additional npm modules for the closure compilers.
Maybe this fixed this specific issue, if not feel free to create a feature request for an gulp plugin version.

from closure-builder.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.