psvm-js's People
psvm-js's Issues
Can't "npm install -g psvm"
npm install -g [email protected]
works, but:
~ ❯❯❯ npm install -g psvm
npm ERR! Linux 3.19.0-25-generic
npm ERR! argv "/home/siegfried/.nvm/versions/node/v0.12.7/bin/node" "/home/siegfried/.nvm/versions/node/v0.12.7/bin/npm" "install" "-g" "psvm"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code ETARGET
npm ERR! notarget No compatible version found: psvm@'*'
npm ERR! notarget Valid install targets:
npm ERR! notarget ["0.0.1-beta.1","0.0.1-beta","0.0.1-beta1"]
npm ERR! notarget
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! Please include the following file with any support request:
npm ERR! /home/siegfried/npm-debug.log
Propose list of available releases
Make the use choose among the list of available releases of purescript using prompt.
psc: command not found after a fresh install
I psvm install v0.8.5
which worked fine.
When I psvm current
, I have the following output:
Unhandled rejection Error: Command failed: psc --version
/bin/sh: psc: command not found
at ChildProcess.exithandler (child_process.js:202:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:850:16)
at Socket.<anonymous> (internal/child_process.js:323:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:492:12)
"psvm use" not implemented correctly
psvm use <version>
should put the specified version of psc* in the PATH
.
Downside : This will only be valid for the current shell session, it will be not persisted. Might be useful to check how nvm handles this.
Better info log
Better error handling
Doesn't install psc-ide
Not sure if it's supposed to, but if it isn't where is one supposed to get it?
Does not parse arguments on ubuntu linux
I've made a fix, posted a pull request at cliparse-node, but it does not seem very active.
Also tested locally, and it works for me, on my machine ;-).
I hope the pull request gets merged, but not too optimistic (a few others in the queue there).
Tag versions when publishing to npm?
It would be nice to add a git tag for each version you publish to npm - for example, this makes it easier to diagnose issues, as people can easily look at the code they're running. In case you weren't aware, npm version
can do this for you and update package.json properly at the same time, too.
`psvm ls` fails if the psvm prefix directory does not exist
To reproduce:
$ rm -r $HOME/.psvm
$ psvm ls
s.js:945
return binding.readdir(pathModule._makeLong(path), options.encoding);
^
Error: ENOENT: no such file or directory, scandir '/Users/hgarrood/.psvm/versions'
at Error (native)
at Object.fs.readdirSync (fs.js:945:18)
at Object.getInstalledVersions (/Users/hgarrood/.npm-packages/lib/node_modules/psvm/src/lib.js:30:17)
at Object.ls [as action] (/Users/hgarrood/.npm-packages/lib/node_modules/psvm/src/cli.js:20:22)
at Object.cli.execute (/Users/hgarrood/.npm-packages/lib/node_modules/psvm/node_modules/cliparse/src/cli.js:80:30)
at Object.cli.parse (/Users/hgarrood/.npm-packages/lib/node_modules/psvm/node_modules/cliparse/src/cli.js:153:9)
at Object.<anonymous> (/Users/hgarrood/.npm-packages/lib/node_modules/psvm/src/cli.js:139:10)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:4
I guess ideally it would simply output nothing and exit with 0 in this case.
Handling assets for a release
Let the use choose which asset to download using prompt
Don't require a leading v when switching versions
For example:
$ psvm use 0.8.5
Switching to Purescript : 0.8.5
Unhandled rejection Error: ENOENT: no such file or directory, open '/Users/hgarrood/.psvm/versions/0.8.5/purescript/psc'
at Error (native)
I do have 0.8.5 installed; if I run psvm use v0.8.5
it works. Can psvm
automatically prepend a 'v' if necessary? Also can this error be made a bit nicer?
I might send a PR for this if I get a spare moment. :)
Windows support?
Would you be ok with adding support for Windows? I'd be happy to make the code changes required; I'm expecting (hoping) that they'll be relatively straightforward.
Don't reinstall versions which have already been installed?
How would you feel about making psvm install v0.9.0
be a no-op if v0.9.0
already exists on the system? This makes it easier for scripts using psvm
, as then they don't have to check for themselves.
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.