I am trying to do nodeschool.io exercises. I have problems running their packages.
The first package I installed:
$ npm install -g learnyounode $ learnyounode
Launches a package using the learnyounode
I tried to install every other package on my site and cannot start the program using the appropriate command on the command line, for example:
$ npm install -g functional-javascript-workshop@latest $ /Users/name/npm/bin/functional-javascript -> /Users/name/npm/lib/node_modules/functional-javascript-workshop/functional-javascript.js /Users/name/npm/bin/functional-javascript-workshop -> /Users/name/npm/lib/node_modules/functional-javascript-workshop/functional-javascript.js functional-javascript-workshop@0.0.27 /Users/name/npm/lib/node_modules/functional-javascript-workshop āāā lorem-ipsum@0.1.1 ( inflection@1.2.7 , optimist@0.3.7 ) āāā workshopper@0.7.2 ( map-async@0.1.1 , tuple-stream@0.0.2 , split@0.2.10 , through@2.3.6 , mkdirp@0.3.5 , colors-tmpl@0.1.0 , xtend@2.1.2 , terminal-menu@0.2.0 , optimist@0.6.1 , msee@0.1.1 ) $ functional-javascript-workshop $ -bash: functional-javascript-workshop: command not found
Here is the link to the package I'm trying to install in the example: functional-javascript-workshop
As you can see, I get the -bash - command not found message -bash - command not found
Looking at other posts with similar problems, I ran the following commands to see my path and where the packages are saved:
$ which node $ /usr/local/bin/node $ which npm $ /usr/local/bin/npm $PATH $ Users/name/.rbenv/shims:/Users/name/.rbenv/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin: No such file or directory
The steps I tried:
- Uninstall / reinstall node using brew commands
- npm global update ($ npm update -g)
It seems like my node modules are installed in /Users/name/npm/lib/node_modules . Iām not sure how to provide access to the command line, or how to search in this path for the command to start the program.