question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mabihancommented, 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.

1reaction
JKHeadleycommented, Mar 20, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm scripts don't find files in node_modules/.bin
I can run node_modules/.bin/webpack and everything works. Output of npm config ls looks nearly identical local vs server (same npm and node ......
Read more >
How To Use Node.js Modules with npm and package.json
Once the information matches what you see here, press ENTER to complete this process and create the package.json file. With this file, you...
Read more >
ts-node - npm
ts-node is a TypeScript execution engine and REPL for Node.js. It JIT transforms TypeScript into JavaScript, enabling you to directly execute ...
Read more >
cannot find module [Node npm Error Solved] - freeCodeCamp
I'm getting the error because I'm trying to import the freeCodeCamp icon from the react-icons package, which I don't have installed. import { ......
Read more >
How to Create and Publish Your First Node.js Module
Create a new repo on GitHub and call it “number-formatter” (make sure you check the README box, add a .gitignore file for Node,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found