trailsjs / trailpack-express

:package: Express Trailpack
MIT License
12 stars 15 forks source link

Yeoman Generator is not specfiging correct dependecies. E.g 'trails-controller'. #58

Closed nosnibor89 closed 7 years ago

nosnibor89 commented 7 years ago

When I use Yo Trails(generator recently updated), then run node server.js and npm throws error:

`module.js:471 throw err; ^

Error: Cannot find module 'trails-controller'`

Here is my package.json:

{ "name": "trails-course", "version": "0.0.0", "description": "A new Trails.js Application", "homepage": "http://trailsjs.io", "author": { "name": "xxxxxxxxxxx", "email": "xxxxxxxxxx@gmail.com", "url": "https://github.com/trailsjs" }, "main": "index.js", "keywords": [ "", "trails", "trailsjs" ], "dependencies": { "express": "^4.14.1", "trailpack-express": "^2.0.2", "trailpack-footprints": "^2.0.0", "trailpack-repl": "v2", "trailpack-router": "v2", "trailpack-waterline": "^2.0.0-rc2", "trails": "v2", "winston": "^2.3" }, "devDependencies": { "eslint": "^2.11", "eslint-config-trails": "^2", "mocha": "^2.5", "supertest": "^1.2" }, "scripts": { "test": "eslint . && mocha" }, "engines": { "node": ">= 4.0.0" }, "eslintConfig": { "extends": "trails" }, "repository": "/trails-course", "license": "Apache-2.0" }

If I add "trailpack-controller": "^1.0.2" to package.json and run npm install, then the app runs ok.