fengari-lua / fengari-node-cli

The Lua command line application, but using fengari under node.js
MIT License
29 stars 6 forks source link

"No compatible version found: fengari@^0.0.1" #4

Closed nikki93 closed 6 years ago

nikki93 commented 6 years ago

Including here a log of accidentally installing 'fengari' globally (which actually happens to confirm that fengari@0.0.1-rc.1 is installable) and uninstalling it, checking node version then trying to install 'fengari-node-cli':

[nikki ~]$ npm i -g fengari
/Users/nikki/.nvm/versions/node/v8.4.0/lib
└─┬ fengari@0.0.1-rc.1
  ├── readline-sync@1.4.9
  ├── sprintf-js@1.1.1
  ├── strftime@0.10.0
  └─┬ tmp@0.0.33
    └── os-tmpdir@1.0.2

[nikki ~]$ node -v
v8.4.0
[nikki ~]$ clear
[nikki ~]$ npm uninstall -g fengari
- os-tmpdir@1.0.2 node_modules/fengari/node_modules/os-tmpdir
- readline-sync@1.4.9 node_modules/fengari/node_modules/readline-sync
- sprintf-js@1.1.1 node_modules/fengari/node_modules/sprintf-js
- strftime@0.10.0 node_modules/fengari/node_modules/strftime
- tmp@0.0.33 node_modules/fengari/node_modules/tmp
- fengari@0.0.1-rc.1 node_modules/fengari
[nikki ~]$ npm i -g fengari-node-cli
npm ERR! code ETARGET
npm ERR! notarget No compatible version found: fengari@^0.0.1
npm ERR! notarget Valid install targets:
npm ERR! notarget 0.0.1-rc.1
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! notarget
npm ERR! notarget It was specified as a dependency of 'fengari-node-cli'
npm ERR! notarget

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/nikki/.npm/_logs/2018-03-30T22_01_55_817Z-debug.log

^0.0.1 doesn't match 0.0.1-rc.1 according to https://semver.npmjs.com/ (note how the first image shows the box containing '0.0.1-rc.1' in green while the second doesn't):

screenshot 2018-03-30 15 05 11 screenshot 2018-03-30 15 05 49
nikki93 commented 6 years ago

The part below that ^ on https://semver.npmjs.com/ has hints for how to express the semantics you want:

screenshot 2018-03-30 15 17 22