Closed jhodgkinson-splunk closed 1 year ago
Hi, https://github.com/relative/synchrony/commit/b2cd9c8b8644347e457c1c10dae993609a4c0358 should have fixed the error creating type declarations.
results in nothing appearing in bin
The bin script (synchrony
) should be copied from /src/cli.js
to /dist/cli.js
in the build script.
The API should be output to /dist/index.js
I'm relatively new to NPM and javascript and trying to follow the directions in the README, are they correct or is there some other method I should be following to use this package?
$ npm install -g 'relative/synchrony#master' --verbose
npm verb cli /usr/local/Cellar/node/19.1.0/bin/node /usr/local/bin/npm
npm info using npm@9.6.2
npm info using node@v19.1.0
npm verb title npm install relative/synchrony#master
npm verb argv "install" "--global" "relative/synchrony#master" "--loglevel" "verbose"
npm verb logfile logs-max:10 dir:/Users/jhodgkinson/.npm/_logs/2023-03-23T01_29_52_645Z-
npm verb logfile /Users/jhodgkinson/.npm/_logs/2023-03-23T01_29_52_645Z-debug-0.log
npm http fetch GET 200 https://registry.npmjs.org/prettier 1350ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/acorn 1358ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/eslint-scope 1358ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/acorn-walk 1360ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/yargs 1360ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/acorn-loose 1382ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@javascript-obfuscator%2fescodegen 1434ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/mersenne-twister 1609ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/require-directory 916ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/escalade 918ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/esrecurse 921ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/estraverse 921ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/cliui 921ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/optionator 927ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/string-width 924ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/source-map 1441ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/esprima 1446ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/yargs-parser 1440ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/esutils 1448ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/get-caller-file 1444ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/y18n 1444ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@javascript-obfuscator%2festraverse 1452ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/fast-levenshtein 329ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/deep-is 335ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/word-wrap 335ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/prelude-ls 337ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/levn 334ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/type-check 337ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/is-fullwidth-code-point 479ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/strip-ansi 487ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/strip-ansi 480ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/emoji-regex 486ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/wrap-ansi 490ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/ansi-regex 260ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/ansi-styles 509ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/color-convert 271ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/color-name 468ms (cache revalidated)
npm http fetch GET 200 https://codeload.github.com/relative/synchrony/tar.gz/b2cd9c8b8644347e457c1c10dae993609a4c0358 1326ms (cache revalidated)
added 37 packages in 17s
2 packages are looking for funding
run `npm fund` for details
npm verb exit 0
npm info ok
I don't think installing from git will build the module, so I should probably remove that from the readme.
I believe npm config get prefix
should show you where global modules installed with bin
entries get placed.
You should be able to
git clone https://github.com/relative/synchrony.git synchrony
cd synchrony
npm install
npm run build
npm link # Links package to global node_modules folder
Then after synchrony
should be available in your PATH
Thanks, perfect!
Running on an intel macbook (Ventura), following the steps in the readme results in nothing appearing in bin... and I tried pulling the latest release with no success either.
Reproduction steps:
npm install output:
Error output: