-
Notifications
You must be signed in to change notification settings - Fork 23
closure-util blocks npm install of openlayers on Windows: ERPROTO #76
Comments
Same error for me. I am working on windows behind a corporate proxy.
|
Bump, I have the same issue:
|
A work-around for now is:
This is a bug also on Linux. |
Same problem. Windows. Running
|
This looks like it is trying to use the local version. Maybe there was a problem with this local version of closure-util. Maybe try the latest version of openlayers and my work-around. |
It is a fresh master checkout of OL. I'm a realy newbie on this. Can you be more detailed? |
@icemagno I think you have a different issue and with your proxy settings. How did you configure your proxy for npm? Fresh master checkout? Are you using OpenLayers or developing for it? If you are just using it, you should not use the master branch as it may not be stable. Use a stable version. |
Yep I think you're right about the proxy....Ive set it in enviroment and using npm config. The proxy is ok because I can see some packages being downloaded. I forgot to set it at my first try and have a different error. But....Geoserver is having some trouble to use my proxy too so....it is a military proxy and have some tricks I don't know. About the master..... I just take a bleeding edge master in a fork and create a branch to help the OL guys in a piece of code. Intent to create a pull request later but I can't help without setting the dev environment. |
I'm having (pretty much) the same problem on linux.
@geekdenz: I tried to install |
@icemagno & @knedlsepp Can you try
in the folder? If that doesn't work:
|
add dependencies "closure-util": "github:fengdehong/closure-util" |
I also have this problem
/home/rof/src/github.com/comp/proj/node_modules/lodash/lodash.js:424 npm ERR! [email protected] postinstall: npm ERR! Please include the following file with any support request: |
I am still having this problem, installing globally feels like a hack, can openlayers not simply add as a dependancy ??? |
Not sure what your build environment looks like. But if you're not relying on the Closure Compiler, you should consider using the ol package instead of the openlayers one. That switch will allow you to use mainstream bundlers and minifiers in a hassle free way. |
We ran into the same issue on a windows machine. The solution was to set http_proxy and https_proxy explicitly in the windows environment variables. Using the npm config was not enough. |
@ahocevar Solved my problem, thank you. |
Unable to install openlayers on windows due to error. Works fine with node 5 and npm 3.4 on OSX
info install Downloading https://github.com/google/closure-library/archive/5b25e65.zip
info install Downloading http://dl.google.com/closure-compiler/compiler-20151015.zip
ERR! closure-util write EPROTO
npm WARN EPACKAGEJSON [email protected] No repository field.
npm WARN EPACKAGEJSON [email protected] No license field.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\E027694\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "closure
-util"
npm ERR! node v5.0.0
npm ERR! npm v3.4.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall:
node ./bin/closure-util.js update
npm ERR! Exit status 1
npm ERR!
The text was updated successfully, but these errors were encountered: