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.

Does not add all needed Feathers dependencies

See original GitHub issue

Note: Please include Node.js version (node -v) and npm version (npm -v) when reporting on this issue.

Steps to reproduce

❯ fgtest feathers g app .
? Project name fgtest
? Description
? What folder should the source files live in? src
? Which package manager are you using (has to be installed globally)? Yarn
? What type of API are you making? (Press <space> to select, <a> to toggle all, <i> to inverse selection)REST, Realtime via Socket.io
   create package.json
   create config/default.json
   create LICENSE
   create public/favicon.ico
   create public/index.html
   create .editorconfig
   create .eslintrc.json
   create .npmignore
   create src/app.hooks.js
   create src/hooks/logger.js
   create src/index.js
   create src/middleware/index.js
   create src/services/index.js
   create .gitignore
   create README.md
   create src/app.js
   create test/app.test.js
   create config/production.json
yarn add v0.24.6
info No lockfile found.
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 📃  Building fresh packages...
success Saved lockfile.
success Saved 200 new dependencies.
❯ fgtest [1m 2s] yarn start
yarn start v0.24.6
$ node src/
module.js:487
    throw err;
    ^

Error: Cannot find module 'winston'
    at Function.Module._resolveFilename (module.js:485:15)
    at Function.Module._load (module.js:437:25)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/teddy/code/scratch-projects/fgtest/src/index.js:2:16)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
error Command failed with exit code 1.

❯ fgtest cat package.json
{
  "name": "fgtest",
  "description": "",
  "version": "0.0.0",
  "homepage": "",
  "main": "src",
  "keywords": [
    "feathers"
  ],
  "author": {
    "name": "Bin Ury",
    "email": "bin.ury@tuta.io"
  },
  "contributors": [],
  "bugs": {},
  "directories": {
    "lib": "src"
  },
  "engines": {
    "node": ">= 6.0.0",
    "yarn": ">= 0.18.0"
  },
  "scripts": {
    "test": "npm run eslint && npm run mocha",
    "eslint": "eslint src/. test/. --config .eslintrc.json",
    "start": "node src/",
    "mocha": "mocha test/ --recursive"
  },
  "dependencies": {
    "eslint": "^3.19.0",
    "mocha": "^3.4.2",
    "request": "^2.81.0",
    "request-promise": "^4.2.1"
  }
}

System configuration

❯ fgtest feathers g app .
? Project name fgtest
? Description
? What folder should the source files live in? src
? Which package manager are you using (has to be installed globally)? Yarn
? What type of API are you making? (Press <space> to select, <a> to toggle all, <i> to inverse selection)REST, Realtime via Socket.io

Module versions (especially the part that’s not working): Feathers-cli 2.0.5 yarn 0.24.6 NodeJS version: 8.0.0 Operating System: MacOS 10.12.6

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
Cengkarukcommented, Nov 8, 2017

Same with @pepe when i choose npm, everything works well.

1reaction
dafflcommented, Jun 10, 2017

The devDependencies problem has been fixed. If the missing dependencies issue is intermittent I don’t think there is too much we can do but we can look into it more if it persists for more people (after reinstalling).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Does not add all needed Feathers dependencies #90 - GitHub
I just installed Node 8 using nvm and can't reproduce the issue. It looks like your package.json got somehow mangled. Is this reproducible...
Read more >
feathersjs - Can not generate service, versioning conflict. What ...
I've update the post with my dependencies which regards feathers because in comment the format is not so readable. Should I delete only...
Read more >
Book Analysis: Working Effectively with Legacy Code
The author differentiates between two reason to break dependencies: Sensing: Used to interrogate values our code can't in its original state.
Read more >
The key points of Working Effectively with Legacy Code
Identify Seams to break your code dependencies. Adding tests on the existing code can be challenging. Hell, it's usually a nightmare! That's because...
Read more >
Getting Started | FeathersVuex
To setup feathers-vuex , we first need to setup the latest Feathers client. We can also setup feathers-vuex in the same file. Depending...
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