rest-hapi icon indicating copy to clipboard operation
rest-hapi copied to clipboard

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

Open rajeshwar-fissionhq opened this issue 6 years ago • 7 comments

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

rajeshwar-fissionhq avatar Nov 28 '18 06:11 rajeshwar-fissionhq

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

JKHeadley avatar Nov 28 '18 06:11 JKHeadley

node -v v8.12.0 npm -v 6.4.1

rajeshwarpatlolla avatar Nov 28 '18 06:11 rajeshwarpatlolla

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

JKHeadley avatar Nov 28 '18 07:11 JKHeadley

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

launay12u avatar Feb 15 '19 14:02 launay12u

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.

JKHeadley avatar Mar 20 '19 15:03 JKHeadley

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.

mabihan avatar Mar 22 '19 21:03 mabihan

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

JKHeadley avatar Mar 23 '19 04:03 JKHeadley