kriszyp / cpm Goto Github PK
View Code? Open in Web Editor NEWCommonJS Package Manager
Home Page: http://dojotoolkit.org/
CommonJS Package Manager
Home Page: http://dojotoolkit.org/
Using cpm trunk, then installing requirejs from Dojo foundation repo the following error occurs (using Mac OSX ML):
$ cpm install requirejs
Installing requirejs
Downloading http://packages.dojofoundation.org/requirejs
Downloading http://packages.dojofoundation.org/archives/https$3A$2F$2Fgithub.com$2Fjrburke$2Frequirejs$2Fzipball$2F2.0.4
Unzipping http://packages.dojofoundation.org/archives/https$3A$2F$2Fgithub.com$2Fjrburke$2Frequirejs$2Fzipball$2F2.0.4
Done unzipping
org.mozilla.javascript.EcmaError: TypeError: Cannot call method "replace" of undefined (/usr/local/lib/cpm/lib/cpm.js#215)
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3723)
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3701)
at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3729)
at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3748)
at org.mozilla.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3767)
at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2290)
at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2283)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1501)
at script(/usr/local/lib/cpm/lib/cpm.js:215)
at script.notify(/usr/local/lib/cpm/lib/cpm-utils/promise.js:147)
at script(/usr/local/lib/cpm/lib/cpm-utils/promise.js:210)
at script.perform(/usr/local/lib/cpm/lib/cpm-utils/promise.js:253)
at script(/usr/local/lib/cpm/lib/cpm.js:213)
at script.notify(/usr/local/lib/cpm/lib/cpm-utils/promise.js:147)
at script(/usr/local/lib/cpm/lib/cpm-utils/promise.js:210)
at script.perform(/usr/local/lib/cpm/lib/cpm-utils/promise.js:253)
at script.installPackage(/usr/local/lib/cpm/lib/cpm.js:207)
at script.main(/usr/local/lib/cpm/lib/cpm.js:117)
at script(/usr/local/lib/cpm/lib/cpm.js:415)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:845)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3130)
at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
at org.mozilla.javascript.tools.shell.Main.evaluateScript(Main.java:563)
at org.mozilla.javascript.tools.shell.Main.processFileSecure(Main.java:485)
at org.mozilla.javascript.tools.shell.Main.processFile(Main.java:451)
at org.mozilla.javascript.tools.shell.Main.processSource(Main.java:443)
at org.mozilla.javascript.tools.shell.Main.processFiles(Main.java:196)
at org.mozilla.javascript.tools.shell.Main$IProxy.run(Main.java:117)
at org.mozilla.javascript.Context.call(Context.java:522)
at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:535)
at org.mozilla.javascript.tools.shell.Main.exec(Main.java:179)
at org.mozilla.javascript.tools.shell.Main.main(Main.java:157)
Are there plans to add a install command that reads a package.json ala npm?
Perhaps we should look at the package's package.json for version information if the version number is not listed in cpm's root package.json.
Feature request for a flag which will prevent the unzipping / untarring of the downloads.
My use case is that I'm using Eclipse's embedded Jetty server to serve up some web pages and javascript (that is, the dgrid https://github.com/SitePen/dgrid/releases package) and I'm using CPM to manage its dependencies.
Jetty can serve files out of a packaged .zip file using JarResource:
http://download.eclipse.org/jetty/stable-9/apidocs/org/eclipse/jetty/util/resource/JarResource.html
So, it would be best if I could avoid unzipping all the files from the dgrid installation and avoid polluting my base .jar file with all the small files. Jetty can serve the files out of the dgrid.zip.
When doing a cpm upgrade on any of the dojo, dijit or dojox packages, I get a nodejs error the first time. The second time I run the same command, everything works fine :
cpm upgrade dijit
path.existsSync is now called fs.existsSync
.
Installing dijit version current
Downloading http://packages.dojofoundation.org/dijit
Downloading https://github.com/dojo/dijit/zipball/1.10
Downloading https://codeload.github.com/dojo/dijit/legacy.zip/1.10
/usr/local/lib/cpm/lib/cpm-utils/promise.js:131
throw new Error("This deferred has already been resolved");
^
Error: This deferred has already been resolved
at notifyAll (/usr/local/lib/cpm/lib/cpm-utils/promise.js:131:13)
at Deferred.reject.reject.errback.emitError (/usr/local/lib/cpm/lib/cpm-utils/promise.js:182:5)
at ClientRequest. (/usr/local/lib/cpm/lib/cpm-utils/node-http-client.js:85:12)
at ClientRequest.emit (events.js:92:17)
at CleartextStream.socketCloseListener (http.js:1509:7)
at CleartextStream.emit (events.js:117:20)
at tls.js:691:10
at process._tickCallback (node.js:419:13)`
UPDATE: This appears to only work when executed from git repo's root folder, otherwise I get the Java error below.
~/cpm$ cpm # Works
~/cpm$ cpm install dojo
~/cpm$ cd dojo
~/cpm/dojo$ cpm # FAIL.
~/cpm/dojo$ cd ../../
~/$ cpm #FAIL
See CLI dump below.
OS: OSX Lion
$ curl https://raw.github.com/kriszyp/cpm/master/install | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 425 100 425 0 0 484 0 --:--:-- --:--:-- --:--:-- 741
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 120 100 120 0 0 103 0 0:00:01 0:00:01 --:--:-- 259
100 973k 100 973k 0 0 74302 0 0:00:13 0:00:13 --:--:-- 56941
mv: rename kriszyp-cpm-5ca6ddb/ to /usr/local/lib/cpm: Permission denied
sed: 1: "/usr/local/lib/cpm/cpm": extra characters at the end of l command
ln: /usr/local/bin/cpm: Permission denied
chmod: /usr/local/bin/cpm: No such file or directory
$ sudo curl https://raw.github.com/kriszyp/cpm/master/install | sh
Password:
Sorry, try again.
Password:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 425 100 425 0 0 525 0 --:--:-- --:--:-- --:--:-- 919
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 120 100 120 0 0 184 0 --:--:-- --:--:-- --:--:-- 236
100 973k 100 973k 0 0 27929 0 0:00:35 0:00:35 --:--:-- 146k
mv: rename kriszyp-cpm-5ca6ddb/ to /usr/local/lib/cpm: Permission denied
sed: 1: "/usr/local/lib/cpm/cpm": extra characters at the end of l command
ln: /usr/local/bin/cpm: Permission denied
chmod: /usr/local/bin/cpm: No such file or directory
$ sudo curl https://raw.github.com/kriszyp/cpm/master/install | sudo sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 425 100 425 0 0 729 0 --:--:-- --:--:-- --:--:-- 898
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 120 100 120 0 0 192 0 --:--:-- --:--:-- --:--:-- 248
100 973k 100 973k 0 0 203k 0 0:00:04 0:00:04 --:--:-- 296k
sed: 1: "/usr/local/lib/cpm/cpm": extra characters at the end of l command
$ cpm install dojo
Exception in thread "main" java.lang.NoClassDefFoundError: org/mozilla/javascript/tools/shell/Main
Caused by: java.lang.ClassNotFoundException: org.mozilla.javascript.tools.shell.Main
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Cheers,
Adam Crabtree
hi,
wanted to use cpm through a http proxy on a linux box, (using java and rhino)
to parse the environment proxy settings i modified the cpm script like so:
# diff cpm cpm.orig
29,42c29
<
< ### use proxy settings
< PROXY=""
< if [ $http_proxy ]; then
< PROXY="-Dhttp.proxyHost=`expr match \"$http_proxy\" '\(.*\):.*'` -Dhttp.proxyPort=`expr match \"$http_proxy\" '.*:\(.*\)'`"
< fi
< if [ $https_proxy ]; then
< PROXY="$PROXY -Dhttps.proxyHost=`expr match \"$https_proxy\" '\(.*\):.*'` -Dhttps.proxyPort=`expr match \"$https_proxy\" '.*:\(.*\)'`"
< fi
< if [ $no_proxy ]; then
< PROXY="$PROXY -Dhttp.nonProxyHosts=\"${no_proxy//,/|}\""
< fi
<
< java -classpath "$CPM_PATH/jars/js.jar" $PROXY org.mozilla.javascript.tools.shell.Main -opt -1 "$CPM_PATH/lib/cpm.js" $@
---
> java -classpath "$CPM_PATH/jars/js.jar" org.mozilla.javascript.tools.shell.Main -opt -1 "$CPM_PATH/lib/cpm.js" $@
kriszyp-cpm-v0.1.4-0-gb48af56
Package: cbtree https://github.com/pjekel/cbtree (currently the last one at packages.dojofoundation.org)
cbtree depends on dojo and dijit in the following way:
"dependencies": {
"dojo" : ">= 1.7",
"dijit" : ">= 1.7"
}
I tried to install cbtree in an empty directory
dojo and dijit aren't installed.
Here is the output of cpm:
Installing cbtree
Downloading http://packages.dojofoundation.org/cbtree
Downloading http://packages.dojofoundation.org/archives/https$3A$2F$2Fgithub.com$2Fpjekel$2Fcbtree$2Fzipball$2Fv0.9.0
Unzipping http://packages.dojofoundation.org/archives/https$3A$2F$2Fgithub.com$2Fpjekel$2Fcbtree$2Fzipball$2Fv0.9.0
Done unzipping
Installing dependency: dojo
Installing dojo version >= 1.7 or newer
Downloading http://packages.dojofoundation.org/dojo
Already current
Installing dependency: dijit
Installing dijit version >= 1.7 or newer
Downloading http://packages.dojofoundation.org/dijit
Already current
I had an issue installing, that I was able to work around, because there are no /usr/local/bin /usr/local/lib directories in Mountain Lion by default, apparently.
I created the folders and the install seemed to go fine, afterward.
After install, I'm unable to do anything with cpm from the command line. Typing cpm * (anything) returns this error:
readlink: illegal option -- f
usage: readlink [-n] [file ...]
Exception in thread "main" java.lang.NoClassDefFoundError: org/mozilla/javascript/tools/shell/Main
Caused by: java.lang.ClassNotFoundException: org.mozilla.javascript.tools.shell.Main
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
I was not able to find any info about this anywhere.
Thanks in advance for your consideration of the issue.
Jay
Some linux users already have this package as cpm: https://github.com/comotion/cpm
Would it make sense, since CommonJS doesn't really have much to do with AMD packages anyway, to rename cpm to something like amdpm, or if you want to keep cpm, perhaps cpmjs ? I realize neither are as easy to type. Could also go with dpm or jspm (haven't checked to see if there are popular packages with these names).
Hey,
I tried to update my just submitted package 'Complex' by resubmitting it.
I made a small copy-paste error (wrong git repo) which caused some troubles so cpm install Complex
fails..
Any idea how to fix it?
Hi,
There is a new issue when upgrading to dojox 1.10.1...
When used in nodejs mode, I get the following error :
Installing dojox version current
Downloading http://packages.dojofoundation.org/dojox
Downloading http://packages.dojofoundation.org/archives/https$3A$2F$2Fgithub.com$2Fdojo$2Fdojox$2Fzipball$2F1.10.1
Unzipping http://packages.dojofoundation.org/archives/https$3A$2F$2Fgithub.com$2Fdojo$2Fdojox$2Fzipball$2F1.10.1
FATAL ERROR: JS Allocation failed - process out of memory
I tried to increase the process memory by adding a --max-old-space-size=12288 to the node command in cpm, but despite consuming the whole memory, it crashed in the same way.
The usage states:
cpm action [package-to-install] [version] [target-location]
What should I provide as "version" argument if I just want the latest version and don't know its number?
Thanks,
Claus
Using node 0.8.4 and cpm trunk, then installing requirejs from Dojo foundation repo the following error occurs:
$ cpm install requirejs
Installing requirejs
Downloading http://packages.dojofoundation.org/requirejs
Downloading http://packages.dojofoundation.org/archives/https$3A$2F$2Fgithub.com$2Fjrburke$2Frequirejs$2Fzipball$2F2.0.4
Unzipping http://packages.dojofoundation.org/archives/https$3A$2F$2Fgithub.com$2Fjrburke$2Frequirejs$2Fzipball$2F2.0.4
Done unzipping
org.mozilla.javascript.EcmaError: TypeError: Cannot call method "replace" of undefined (/usr/local/lib/cpm/lib/cpm.js#215)
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3723)
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3701)
at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3729)
at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3748)
at org.mozilla.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3767)
at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2290)
at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2283)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1501)
at script(/usr/local/lib/cpm/lib/cpm.js:215)
at script.notify(/usr/local/lib/cpm/lib/cpm-utils/promise.js:147)
at script(/usr/local/lib/cpm/lib/cpm-utils/promise.js:210)
at script.perform(/usr/local/lib/cpm/lib/cpm-utils/promise.js:253)
at script(/usr/local/lib/cpm/lib/cpm.js:213)
at script.notify(/usr/local/lib/cpm/lib/cpm-utils/promise.js:147)
at script(/usr/local/lib/cpm/lib/cpm-utils/promise.js:210)
at script.perform(/usr/local/lib/cpm/lib/cpm-utils/promise.js:253)
at script.installPackage(/usr/local/lib/cpm/lib/cpm.js:207)
at script.main(/usr/local/lib/cpm/lib/cpm.js:117)
at script(/usr/local/lib/cpm/lib/cpm.js:415)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:845)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3130)
at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
at org.mozilla.javascript.tools.shell.Main.evaluateScript(Main.java:563)
at org.mozilla.javascript.tools.shell.Main.processFileSecure(Main.java:485)
at org.mozilla.javascript.tools.shell.Main.processFile(Main.java:451)
at org.mozilla.javascript.tools.shell.Main.processSource(Main.java:443)
at org.mozilla.javascript.tools.shell.Main.processFiles(Main.java:196)
at org.mozilla.javascript.tools.shell.Main$IProxy.run(Main.java:117)
at org.mozilla.javascript.Context.call(Context.java:522)
at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:535)
at org.mozilla.javascript.tools.shell.Main.exec(Main.java:179)
at org.mozilla.javascript.tools.shell.Main.main(Main.java:157)
I really like CPM and I have used it in the past. For some reason though, it now crashes when trying to load some of dojo's software.
For instance, it says that the util library for dojo doesn't exist. I'm not sure why it would say this as it comes with the dojo source. It's directory is right along side the dojo and dijit directories, both of which installed fine.
The dojox package failed to install as well, but for a different reason. It seems to work for a while then blows up with some massive errors revolving around an exception created by an unexpected end of ZLIB input stream. I will put the output below.
I'm not sure if this is totally a problem with CPM or not, but it would seem like either it is or dojo isn't supporting CPM.
cpm install dojox
Installing dojox
Downloading http://packages.dojofoundation.org/dojox
Downloading http://packages.dojofoundation.org/archives/https$3A$2F$2Fgithub.com$2Fdojo$2Fdojox$2Fzipball$2F1.8.3
Unzipping http://packages.dojofoundation.org/archives/https$3A$2F$2Fgithub.com$2Fdojo$2Fdojox$2Fzipball$2F1.8.3
org.mozilla.javascript.WrappedException: Wrapped java.io.EOFException: Unexpected end of ZLIB input stream (/usr/local/lib/cpm/lib/cpm-utils/unzip.js#15)
at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1782)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:183)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:247)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1688)
at script(/usr/local/lib/cpm/lib/cpm-utils/unzip.js:15)
at script(/usr/local/lib/cpm/lib/cpm.js:290)
at script.notify(/usr/local/lib/cpm/lib/cpm-utils/promise.js:147)
at script(/usr/local/lib/cpm/lib/cpm-utils/promise.js:210)
at script.perform(/usr/local/lib/cpm/lib/cpm-utils/promise.js:253)
at script(/usr/local/lib/cpm/lib/cpm.js:213)
at script.notify(/usr/local/lib/cpm/lib/cpm-utils/promise.js:147)
at script(/usr/local/lib/cpm/lib/cpm-utils/promise.js:210)
at script.perform(/usr/local/lib/cpm/lib/cpm-utils/promise.js:253)
at script.installPackage(/usr/local/lib/cpm/lib/cpm.js:207)
at script.main(/usr/local/lib/cpm/lib/cpm.js:117)
at script(/usr/local/lib/cpm/lib/cpm.js:415)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:845)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3130)
at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
at org.mozilla.javascript.tools.shell.Main.evaluateScript(Main.java:563)
at org.mozilla.javascript.tools.shell.Main.processFileSecure(Main.java:485)
at org.mozilla.javascript.tools.shell.Main.processFile(Main.java:451)
at org.mozilla.javascript.tools.shell.Main.processSource(Main.java:443)
at org.mozilla.javascript.tools.shell.Main.processFiles(Main.java:196)
at org.mozilla.javascript.tools.shell.Main$IProxy.run(Main.java:117)
at org.mozilla.javascript.Context.call(Context.java:522)
at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:535)
at org.mozilla.javascript.tools.shell.Main.exec(Main.java:179)
at org.mozilla.javascript.tools.shell.Main.main(Main.java:157)
Caused by: java.io.EOFException: Unexpected end of ZLIB input stream
at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:240)
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
at java.util.zip.ZipInputStream.read(ZipInputStream.java:163)
at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
... 17 more
org.mozilla.javascript.WrappedException: Wrapped java.io.EOFException: Unexpected end of ZLIB input stream (/usr/local/lib/cpm/lib/cpm-utils/unzip.js#15)
at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1782)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:183)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:247)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1688)
at script(/usr/local/lib/cpm/lib/cpm-utils/unzip.js:15)
at script(/usr/local/lib/cpm/lib/cpm.js:290)
at script.notify(/usr/local/lib/cpm/lib/cpm-utils/promise.js:147)
at script(/usr/local/lib/cpm/lib/cpm-utils/promise.js:210)
at script.perform(/usr/local/lib/cpm/lib/cpm-utils/promise.js:253)
at script(/usr/local/lib/cpm/lib/cpm.js:213)
at script.notify(/usr/local/lib/cpm/lib/cpm-utils/promise.js:147)
at script(/usr/local/lib/cpm/lib/cpm-utils/promise.js:210)
at script.perform(/usr/local/lib/cpm/lib/cpm-utils/promise.js:253)
at script.installPackage(/usr/local/lib/cpm/lib/cpm.js:207)
at script.main(/usr/local/lib/cpm/lib/cpm.js:117)
at script(/usr/local/lib/cpm/lib/cpm.js:415)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:845)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3130)
at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
at org.mozilla.javascript.tools.shell.Main.evaluateScript(Main.java:563)
at org.mozilla.javascript.tools.shell.Main.processFileSecure(Main.java:485)
at org.mozilla.javascript.tools.shell.Main.processFile(Main.java:451)
at org.mozilla.javascript.tools.shell.Main.processSource(Main.java:443)
at org.mozilla.javascript.tools.shell.Main.processFiles(Main.java:196)
at org.mozilla.javascript.tools.shell.Main$IProxy.run(Main.java:117)
at org.mozilla.javascript.Context.call(Context.java:522)
at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:535)
at org.mozilla.javascript.tools.shell.Main.exec(Main.java:179)
at org.mozilla.javascript.tools.shell.Main.main(Main.java:157)
Caused by: java.io.EOFException: Unexpected end of ZLIB input stream
at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:240)
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
at java.util.zip.ZipInputStream.read(ZipInputStream.java:163)
at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
... 17 more
org.mozilla.javascript.WrappedException: Wrapped java.io.EOFException: Unexpected end of ZLIB input stream (/usr/local/lib/cpm/lib/cpm-utils/unzip.js#15)
at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1782)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:183)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:247)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1688)
at script(/usr/local/lib/cpm/lib/cpm-utils/unzip.js:15)
at script(/usr/local/lib/cpm/lib/cpm.js:290)
at script.notify(/usr/local/lib/cpm/lib/cpm-utils/promise.js:147)
at script(/usr/local/lib/cpm/lib/cpm-utils/promise.js:210)
at script.perform(/usr/local/lib/cpm/lib/cpm-utils/promise.js:253)
at script(/usr/local/lib/cpm/lib/cpm.js:213)
at script.notify(/usr/local/lib/cpm/lib/cpm-utils/promise.js:147)
at script(/usr/local/lib/cpm/lib/cpm-utils/promise.js:210)
at script.perform(/usr/local/lib/cpm/lib/cpm-utils/promise.js:253)
at script.installPackage(/usr/local/lib/cpm/lib/cpm.js:207)
at script.main(/usr/local/lib/cpm/lib/cpm.js:117)
at script(/usr/local/lib/cpm/lib/cpm.js:415)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:845)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3130)
at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
at org.mozilla.javascript.tools.shell.Main.evaluateScript(Main.java:563)
at org.mozilla.javascript.tools.shell.Main.processFileSecure(Main.java:485)
at org.mozilla.javascript.tools.shell.Main.processFile(Main.java:451)
at org.mozilla.javascript.tools.shell.Main.processSource(Main.java:443)
at org.mozilla.javascript.tools.shell.Main.processFiles(Main.java:196)
at org.mozilla.javascript.tools.shell.Main$IProxy.run(Main.java:117)
at org.mozilla.javascript.Context.call(Context.java:522)
at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:535)
at org.mozilla.javascript.tools.shell.Main.exec(Main.java:179)
at org.mozilla.javascript.tools.shell.Main.main(Main.java:157)
Caused by: java.io.EOFException: Unexpected end of ZLIB input stream
at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:240)
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
at java.util.zip.ZipInputStream.read(ZipInputStream.java:163)
at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
... 17 more
org.mozilla.javascript.WrappedException: Wrapped java.io.EOFException: Unexpected end of ZLIB input stream (/usr/local/lib/cpm/lib/cpm-utils/unzip.js#15)
at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1782)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:183)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:247)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1688)
at script(/usr/local/lib/cpm/lib/cpm-utils/unzip.js:15)
at script(/usr/local/lib/cpm/lib/cpm.js:290)
at script.notify(/usr/local/lib/cpm/lib/cpm-utils/promise.js:147)
at script(/usr/local/lib/cpm/lib/cpm-utils/promise.js:210)
at script.perform(/usr/local/lib/cpm/lib/cpm-utils/promise.js:253)
at script(/usr/local/lib/cpm/lib/cpm.js:213)
at script.notify(/usr/local/lib/cpm/lib/cpm-utils/promise.js:147)
at script(/usr/local/lib/cpm/lib/cpm-utils/promise.js:210)
at script.perform(/usr/local/lib/cpm/lib/cpm-utils/promise.js:253)
at script.installPackage(/usr/local/lib/cpm/lib/cpm.js:207)
at script.main(/usr/local/lib/cpm/lib/cpm.js:117)
at script(/usr/local/lib/cpm/lib/cpm.js:415)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:845)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3130)
at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
at org.mozilla.javascript.tools.shell.Main.evaluateScript(Main.java:563)
at org.mozilla.javascript.tools.shell.Main.processFileSecure(Main.java:485)
at org.mozilla.javascript.tools.shell.Main.processFile(Main.java:451)
at org.mozilla.javascript.tools.shell.Main.processSource(Main.java:443)
at org.mozilla.javascript.tools.shell.Main.processFiles(Main.java:196)
at org.mozilla.javascript.tools.shell.Main$IProxy.run(Main.java:117)
at org.mozilla.javascript.Context.call(Context.java:522)
at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:535)
at org.mozilla.javascript.tools.shell.Main.exec(Main.java:179)
at org.mozilla.javascript.tools.shell.Main.main(Main.java:157)
Caused by: java.io.EOFException: Unexpected end of ZLIB input stream
at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:240)
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
at java.util.zip.ZipInputStream.read(ZipInputStream.java:163)
at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
... 17 more
js: "/usr/local/lib/cpm/lib/cpm-utils/promise.js", line 192: exception from uncaught JavaScript throw: JavaException: java.io.EOFException: Unexpected end of ZLIB input stream
at /usr/local/lib/cpm/lib/cpm-utils/promise.js:192
at /usr/local/lib/cpm/lib/cpm-utils/promise.js:266 (perform)
at /usr/local/lib/cpm/lib/cpm.js:207 (installPackage)
at /usr/local/lib/cpm/lib/cpm.js:117 (main)
at /usr/local/lib/cpm/lib/cpm.js:415
jordan@jordan-genav-linux:~/Desktop/Development/packages$
n/t
On OSX Lion: install is ok but issuing cpm
output:
readlink: illegal option -- f
usage: readlink [-n] [file ...]
Exception in thread "main" java.lang.NoClassDefFoundError: org/mozilla/javascript/tools/shell/Main
Caused by: java.lang.ClassNotFoundException: org.mozilla.javascript.tools.shell.Main
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.