Comments (6)
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.
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.
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.
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.
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.
Thanks alot man!
from warriorjs.
Related Issues (20)
- Any plans on i18n? HOT 1
- Documentation links are broken in many places HOT 1
- access to newer abilities in previous levels HOT 3
- Connect WarriorJS CLI with warriorjs.com HOT 2
- Add ability to get warrior's max health HOT 3
- brief description on each release HOT 3
- @warriorjs/tower-tick-tick-boom warrior haven't got the "pivot" ability and bashing 'backward' forcedly
- Should the warrior receive more damage when attacked from behind? HOT 1
- Add retro sounds HOT 2
- translate Korean HOT 2
- Korean Translation HOT 3
- Can't access functions from a Unit object
- Watch for Player.js changes and run
- I cannot sign in or create an account for the online platform HOT 2
- When I 'Run' the game after defeated, the state isn't refreshed unless I reload the page for several times HOT 1
- rescue('backward') is undefined HOT 3
- This code is wierdly running HOT 4
- where did constructor() come from and what is it? How does it work and what does it mean? I'm not able to learn anything here HOT 1
- Error: No files matching the pattern "packages/**/src" were found
- Please help me with the algorithm of moves leading to victory in this 9th level on the map "Tick, Tick... Boom!"!
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.
from warriorjs.