Comments (8)
@pixelbacon This is a good point. @trailsjs/maintainers and doc writers, when making our docs and getting started, we should probably globally install the version of the generator we are using. npm install -g yo generator-trails@2
and npm install -g yo generator-trails@3
etc. so that when trails v4 comes out, we don't have this issue again.
from trails.
Hi all, trails is a bit between v3 and v2 atm which has been causing some issues with the generator in v3. If you are interested in starting fast, you'll want to stick with v2 as we get everything migrated over. The migration from v3 to v2 appears to be pretty easy, but it's got some work needed before I'd recommend it.
from trails.
The problem was probably because I didn't run npm install from the generator-trails folder? I went to https://github.com/trailsjs/generator-trails and downloaded the zip of the repo, Copied over the lib folder. Fixed for me.
from trails.
Now getting another error...
module.js:538
throw err;
^
Error: Cannot find module 'trails/controller'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (E:\SomePath\trails-test\node_modules\trailpack-express\lib\utils.js:3:20)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (E:\SomePath\trails-test\node_modules\trailpack-express\lib\server.js:16:15)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @0.0.0 start: `node server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @0.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Rayhaan\AppData\Roaming\npm-cache\_logs\2017-11-25T11_27_25_359Z-debug.log
This generator is really broken. Would appreciate some fixes.
from trails.
I'm getting the same error Error: Cannot find module '../../../lib/util'
on Node 6 and Mac.
from trails.
@alient DId you try what I did? Btw after this I ran into other errors. I don't think trails is stable atm. Waiting for a stable release.
from trails.
Too much work. Defeats the purpose. Moving to the next framework. 8-)
from trails.
Same error... And not to throw a fit, but wasn't documentation not being updated a big issue with the big S?
I understand big version changes, but if the suggested method of getting started is the generator method... the generator method should always work, and the master branch should always match up with the generator. This makes me think it's going to be another endeavor of searching through github issues or stackoverflow to see what something broke and how to fix it...
from trails.
Related Issues (20)
- Trailpack docs returns 404 HOT 1
- Yo Trails Mongoose fails with No compatible version found error HOT 1
- Scoped Packages for Trails organization HOT 2
- V3 api problems HOT 2
- V3 new config confusing HOT 4
- V3 compatible only 8.9.0 and more HOT 1
- Still maintained? HOT 1
- V3 trailpack config override app config HOT 5
- npm ERR! notarget No matching version found for trailpack-express@^3 HOT 3
- Error: Cannot find module 'trailpack-winston' HOT 4
- V3 `this.app.config.get` doesn't behave as expected HOT 1
- V3 configuration trailpack-email HOT 3
- Problem with nodejs 10
- Trails Application not starting first time
- would like to hear back from you guys before i start forking all trails related repositories HOT 2
- start application
- Project dead? HOT 2
- Is this repo dead? HOT 1
- No longer maintained ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trails.