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

I dont see any file at ./node_modules/.bin/rest-hapi-cli #158

Open
rajeshwar-fissionhq opened this issue Nov 28, 2018 · 7 comments
Open

Comments

@rajeshwar-fissionhq
Copy link

rajeshwar-fissionhq commented Nov 28, 2018

Describe the bug
I don't see any file at $ ./node_modules/.bin/rest-hapi-cli to run the command $ ./node_modules/.bin/rest-hapi-cli seed

To Reproduce
Steps to reproduce the behavior:

  1. Cloned the repo using git clone https://github.com/JKHeadley/rest-hapi-demo.git
  2. cd rest-hapi-demo
  3. npm install
  4. ./node_modules/.bin/rest-hapi-cli seed

Expected behavior
After following the above steps it's saying zsh: no such file or directory: ./node_modules/.bin/rest-hapi-cli

Desktop (please complete the following information):

  • OS: Mojave
@JKHeadley
Copy link
Owner

Hi @rajeshwar-fissionhq, not sure what would cause this. What version of node/npm are you using?

@rajeshwarpatlolla
Copy link

node -v
v8.12.0
npm -v
6.4.1

@JKHeadley
Copy link
Owner

hmm, that's probably not the issue. Could you paste the output of the following commands?
npm bin
and
ls -1 ./node_modules/.bin/

@launay12u
Copy link

I Have the same issue, here is my npm bin :

/Users/MyUser/Projects/rest-hapi/node_modules/.bin

and ls -1 ./node_modules/.bin/ :

acorn
atob
babylon
blue-tape
bsondump
cssmin
escodegen
esgenerate
eslint
eslint-config-prettier-check
esparse
esvalidate
handlebars
is-ci
js-yaml
jsesc
jsmin
lint-staged
loose-envify
mkdirp
mongo
mongo-supervise
mongod
mongodb-download
mongodump
mongoexport
mongofiles
mongoimport
mongooplog
mongoperf
mongorestore
mongos
mongosniff
mongostat
mongotop
npm-path
npm-which
nyc
prettier
raven
rimraf
seek-bunzip
seek-table
semver
sgf
sshpk-conv
sshpk-sign
sshpk-verify
tape
uglifyjs
uuid
which
z-schema

There is no rest-hapi-cli

@JKHeadley
Copy link
Owner

hi @launay12u,

npm bin and ./node_modules/.bin/rest-hapi-cli seed should be performed within the directory for the project using rest-hapi (such as rest-hapi-demo), not rest-hapi itself.

@mabihan
Copy link

mabihan commented Mar 22, 2019

I just ran into the same problem, using Webstorm to checkout the projet.
I reinstalled Node, npm but it didn't help.

Eventually, I ran the commands (git clone, npm install, ...) via command line, and it worked.

@JKHeadley
Copy link
Owner

@JeanReneRobin glad you worked it out! Hopefully this will help others as I'm still unsure what is causing the issue.

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

5 participants