Giter Site home page Giter Site logo

Comments (6)

olistic avatar olistic commented on May 5, 2024

It seems that your installation of node/npm is putting npm binaries in a place that is not in the path. This usually happens with homebrew installations of node, if that's the case. Could you please paste what you get after running:

npm install -g warriorjs

from warriorjs.

oronbz avatar oronbz commented on May 5, 2024

Again, this is not the first time I install and use global package, an i'm able to use other global modules just fine but there you go:

Last login: Sat May 16 15:53:54 on ttys001
Orons-MacBook-Pro:~ oron$ npm install -g warriorjs

> [email protected] install /usr/local/Cellar/node/0.12.2_1/libexec/npm/lib/node_modules/warriorjs/node_modules/sleep
> node-gyp rebuild

  CXX(target) Release/obj.target/node_sleep/sleep.o
  SOLINK_MODULE(target) Release/node_sleep.node
  SOLINK_MODULE(target) Release/node_sleep.node: Finished

> [email protected] install /usr/local/Cellar/node/0.12.2_1/libexec/npm/lib/node_modules/warriorjs/node_modules/babel/node_modules/chokidar/node_modules/fsevents
> node-gyp rebuild

  SOLINK_MODULE(target) Release/.node
  SOLINK_MODULE(target) Release/.node: Finished
  CXX(target) Release/obj.target/fse/fsevents.o
  SOLINK_MODULE(target) Release/fse.node
  SOLINK_MODULE(target) Release/fse.node: Finished
/usr/local/Cellar/node/0.12.2_1/libexec/npm/bin/warriorjs -> /usr/local/Cellar/node/0.12.2_1/libexec/npm/lib/node_modules/warriorjs/bin/warriorjs
[email protected] /usr/local/Cellar/node/0.12.2_1/libexec/npm/lib/node_modules/warriorjs
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
Orons-MacBook-Pro:~ oron$ warriorjs
-bash: warriorjs: command not found

from warriorjs.

olistic avatar olistic commented on May 5, 2024

With "use" you mean CLIs? Because it might not be the first time you install and use a global package, but maybe it's the first with a binary. Sorry I'm being insistent, I just want to clear out the possibility before moving on to anything else.

You are getting this:

/usr/local/Cellar/node/0.12.2_1/libexec/npm/bin/warriorjs -> /usr/local/Cellar/node/0.12.2_1/libexec/npm/lib/node_modules/warriorjs/bin/warriorjs

which means that /usr/local/Cellar/node/0.12.2_1/libexec/npm/bin must be on your path to be able to run warriorjs command from anywhere. What do you get if you run:

$ echo $PATH

from warriorjs.

oronbz avatar oronbz commented on May 5, 2024

Whe running /usr/local/Cellar/node/0.12.2_1/libexec/npm/bin/warriorjs it is working, so I guess adding this path to $PATH will work,

are you sure that the normal nodejs installation add this to $PATH by default?

because I didn't use the homebrew one, I've downloaded and installed it from the official site.

from warriorjs.

olistic avatar olistic commented on May 5, 2024

I assume you have previously installed node with Homebrew and then you decided to install it via the nodejs.org package. If that were the case, you might find the following in /usr/local/lib/node_modules/npm/npmrc:

prefix=/usr/local/Cellar/node/0.12.2_1/libexec/npm

which must be changed to:

prefix=/usr/local

If you change that line and reinstall the warriorjs package, it should work.

from warriorjs.

oronbz avatar oronbz commented on May 5, 2024

Thanks alot man!

from warriorjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.