Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-bash: userscripter: command not found #28

Closed
ApopheniaPays opened this issue Oct 17, 2020 · 4 comments
Closed

-bash: userscripter: command not found #28

ApopheniaPays opened this issue Oct 17, 2020 · 4 comments

Comments

@ApopheniaPays
Copy link

$ npm install --global userscripter
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated @types/schema-utils@2.4.0: This is a stub types definition. schema-utils provides its own type definitions, so you do not need this installed.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
/Users/kupietz/.npm-global/bin/userscripter -> /Users/kupietz/.npm-global/lib/node_modules/userscripter/bin/cli.js
npm WARN notsup Unsupported engine for watchpack-chokidar2@2.0.0: wanted: {"node":"<8.10.0"} (current: {"node":"12.15.0","npm":"6.13.4"})
npm WARN notsup Not compatible with your version of node/npm: watchpack-chokidar2@2.0.0
npm WARN userscripter@1.3.3 requires a peer of ts-preferences@^2.0.0 but none is installed. You must install peer dependencies yourself.

+ userscripter@1.3.3
updated 1 package in 39.982s
(base) $ userscripter init
-bash: userscripter: command not found

npm install --save-dev "ts-preferences" didn't help. Neither did "npm install --save-dev "ts-preferences@^2.0.0"

@SimonAlling
Copy link
Owner

npm install --save-dev "ts-preferences" didn't help. Neither did "npm install --save-dev "ts-preferences@^2.0.0"

I don't think that has anything to do with the command not found problem. What OS are you running (e.g. Ubuntu 20.04)?

@SimonAlling
Copy link
Owner

SimonAlling commented Oct 19, 2020

I just tried and it worked for me (but I have had problems with npm install -g on another machine; see #22):

$ npm install --global userscripter
[...]
+ userscripter@1.3.3
added 630 packages from 405 contributors in 25.451s
$ which userscripter
/home/alling/.npm/node_modules/bin/userscripter
$ npm config get prefix
/home/alling/.npm/node_modules
$ userscripter init
$ ls
metadata.ts  package.json  src  tsconfig.json  tsconfig.webpack.json  webpack.config.ts

@SimonAlling
Copy link
Owner

SimonAlling commented Jun 14, 2021

@ApopheniaPays: Is /Users/kupietz/.npm-global/bin in your path?

By the way … you're on macOS, right? 🤔

@SimonAlling
Copy link
Owner

@ApopheniaPays, did you find a solution? I'll close the issue on the anniversary of its creation if it stays inactive. 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant