Comments (6)
Can you post the full error readout? My gut says that it is probably a Node/NPM version error. If you upgrade node and npm to the latest, it should resolve the issue.
from jdeploy.
$ cat package.json
{
"bin": {
"kalk": "jdeploy-bundle/jdeploy.js"
},
"author": "[email protected]",
"description": "A CLI calculator written in Kotlin.",
"main": "index.js",
"preferGlobal": true,
"repository": "https://github.com/zachgrayio/kalk.git",
"version": "1.0.0",
"jdeploy": {
"jar": "kalk-1.0.0/lib/kalk-1.0.0.jar"
},
"dependencies": {
"shelljs": "^0.7.5"
},
"license": "ISC",
"name": "kalk",
"files": [
"jdeploy-bundle",
{
"dir": "kalk-1.0.0",
"includes": "lib/*.jar"
}
],
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
}
}
$ npm -v
5.3.0
$ node -v
v8.4.0
$ jdeploy install
Executing copy rule CopyRule{dir=kalk-1.0.0/lib, includes=[kalk-1.0.0.jar], excludes=null}
kalk-1.0.0/lib/.DS_Store does not match any patterns.
kalk-1.0.0/lib/annotations-13.0.jar does not match any patterns.
kalk-1.0.0/lib/cmdloop-0.1.4.jar does not match any patterns.
kalk-1.0.0/lib/kotlin-stdlib-1.1.4.jar does not match any patterns.
up to date in 0.109s
/usr/local/bin/kalk -> /usr/local/lib/node_modules/kalk/jdeploy-bundle/jdeploy.js
/usr/local/lib/node_modules/kalk -> /Users/triggerhippy/code/repos/kalk-dist
$ kalk 2 + 2
4.0
$ jdeploy publish
Executing copy rule CopyRule{dir=kalk-1.0.0/lib, includes=[kalk-1.0.0.jar], excludes=null}
kalk-1.0.0/lib/.DS_Store does not match any patterns.
kalk-1.0.0/lib/annotations-13.0.jar does not match any patterns.
kalk-1.0.0/lib/cmdloop-0.1.4.jar does not match any patterns.
kalk-1.0.0/lib/kotlin-stdlib-1.1.4.jar does not match any patterns.
up to date in 0.105s
/usr/local/bin/kalk -> /usr/local/lib/node_modules/kalk/jdeploy-bundle/jdeploy.js
/usr/local/lib/node_modules/kalk -> /Users/triggerhippy/code/repos/kalk-dist
npm ERR! f.replace is not a function
from jdeploy.
Hmm.. When I download NodeJS/NPM from the nodejs website (via Mac installer), I get these versions:
Steves-iMac:~ shannah$ node -v
v6.11.3
Steves-iMac:~ shannah$ npm -v
3.10.10
With those versions it works fine.
I tried upgrading npm via sudo npm install -g npm
but that broke everything so NPM no longer worked at all. -- had to reinstall from installer.
WIll try upgrading node via npm first and then upgrading npm.
One thing worth noting is that running jdeploy install && npm publish
should be equivalent to running jdeploy publish
.
That might work for you. It is also possible that the shelljs dependency needs to be updated to a newer version to work with these newer versions of node/npm. The latest is 0.7.8. Will need to investigate further.
from jdeploy.
Thanks for looking into.
Tried with v0.7.8 of shelljs, same result.
Ran the following with 0.7.8:
$ jdeploy install && npm publish
Executing copy rule CopyRule{dir=kalk-1.1.0/lib, includes=[kalk-1.1.0.jar], excludes=null}
kalk-1.1.0/lib/annotations-13.0.jar does not match any patterns.
kalk-1.1.0/lib/cmdloop-0.1.4.jar does not match any patterns.
kalk-1.1.0/lib/kotlin-stdlib-1.1.4.jar does not match any patterns.
up to date in 0.111s
/usr/local/bin/kalk -> /usr/local/lib/node_modules/kalk/jdeploy-bundle/jdeploy.js
/usr/local/lib/node_modules/kalk -> /Users/triggerhippy/code/repos/kalk-dist
npm ERR! f.replace is not a function
from jdeploy.
Seems I may be having issues with NPM moreso than your library. Will keep looking.
from jdeploy.
package.json
was the culprit:
"files": [
"jdeploy-bundle",
{
"dir": "kalk-1.0.0",
"includes": "lib/*.jar"
}
]
should have just been
"files": [
"jdeploy-bundle",
"kalk-1.0.0"
]
I think I found that config in example in the jdeploy docs somewhere, might be worth double checking and updating if needed. Closing out. Great lib btw.
from jdeploy.
Related Issues (20)
- Error making desktop alias HOT 4
- I ask to immediately open the app after the installation then it makes several windows of other hidden apps visible again. HOT 2
- Can't get 'Verify Ownership' working HOT 2
- JDeply does not initialize correctly when one of the detected JAR files is corrupted HOT 3
- Self signing the installer HOT 1
- Github action has wrong action name in readme
- Cannot load app info because app.xml file could not be found, despite it existing HOT 2
- On newer versions of node executing `jdeploy.js` fails with a syntax error: "Octal literals are not allowed" HOT 1
- (node:64182) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
- ARM Linux installers (Raspberry Pi) HOT 6
- Update only after answering question to do so?
- zsh permission denied or Mac Sonoma 14.4.1 HOT 4
- Java8 on windows runs on Java 11 HOT 15
- App stops working if the release is deleted HOT 2
- JVM args not picking HOT 3
- one repo builds packages and one fails HOT 3
- Trojan in Windows Installer? HOT 5
- Creating Github release to public repo fails due to "jDeploy" tag already exists in public repo HOT 2
- Github workflow installer package not producing desired application icon HOT 11
- Application will not run if not connected to the internet HOT 3
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 jdeploy.