Comments (5)
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.
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.
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.
Ok. Thank you for clarification.
from closure-builder.
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)
- ERROR - Cannot read: ...
- poor documentation
- Better support / documentation for specific closure compiler options.
- There is a vulnerability in dns-sync 0.1.3,upgrade recommended
- Support for Online Google Closure API and other if possible HOT 1
- Protobufs/JSPB causes build errors with Closure Library HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from closure-builder.