Comments (3)
Hi @sinner
The issue is that ts-node
is missing.
Please do the following first:
- remove the
node_modules
folder - install dep with
yarn install
Please also provide your operating system and version you used.
from express-typescript-boilerplate.
Hi @dweber019! Thank you again for your response:
After solving that you have said, I have another error (Error: Cannot find module '/usr/src/app/migrate'), here the detail of the error:
`
$npm run setup
[email protected] presetup /usr/src/app
yarn install
yarn install v1.3.2
[1/5] Validating package.json...
[2/5] Resolving packages...
success Already up-to-date.
Done in 0.99s.
[email protected] setup /usr/src/app
npm start setup.db
[email protected] start /usr/src/app
nps "setup.db"
nps is executing setup.db
: nps db.migrate && nps db.seed
nps is executing db.migrate
: nps banner.migrate && nps config && ts-node -F ./node_modules/typeorm/cli.js migrations:run
nps is executing banner.migrate
: ts-node -F ./commands/banner.ts migrate
Error: Cannot find module '/usr/src/app/migrate'
at Function.Module._resolveFilename (module.js:538:15)
at Function.Module._load (module.js:468:25)
at Function.Module.runMain (module.js:684:10)
at Object. (/usr/local/lib/node_modules/ts-node/src/_bin.ts:177:12)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Function.Module.runMain (module.js:684:10)
The script called "banner.migrate" which runs "ts-node -F ./commands/banner.ts migrate" failed with exit code 1 https://github.com/kentcdodds/nps/blob/v5.7.1/other/ERRORS_AND_WARNINGS.md#failed-with-exit-code
The script called "db.migrate" which runs "nps banner.migrate && nps config && ts-node -F ./node_modules/typeorm/cli.js migrations:run" failed with exit code 1 https://github.com/kentcdodds/nps/blob/v5.7.1/other/ERRORS_AND_WARNINGS.md#failed-with-exit-code
The script called "setup.db" which runs "nps db.migrate && nps db.seed" failed with exit code 1 https://github.com/kentcdodds/nps/blob/v5.7.1/other/ERRORS_AND_WARNINGS.md#failed-with-exit-code
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: nps "setup.db"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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! /root/.npm/_logs/2018-01-23T05_57_03_814Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] setup: npm start setup.db
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] setup 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! /root/.npm/_logs/2018-01-23T05_57_03_837Z-debug.log
`
Moreover, my node version is 8.9.4 and my operating system is Mac OS High Sierra, but I'm using your docker-compose configuration.
from express-typescript-boilerplate.
This project doesn't work
from express-typescript-boilerplate.
Related Issues (20)
- Docker build fails HOT 2
- Seeding out of date
- File upload using multer integration
- Errors when installing on Ubuntu 18 LTS HOT 2
- How can i integrate JWT Authentication in this boiler plate HOT 1
- How can i integrate JWT Authentication in this boiler plate HOT 2
- Error when installing (bcrypt) HOT 1
- Error connecting to PostgreSQL with SSL
- error while yarn run setup command HOT 5
- Integrate with Relative Path
- How to set Elastic search Loader?
- About public route without authentication
- Update version of bcrypt and sqlite3 to 5.0.1 and 5.0.0 respectively HOT 8
- How to use winston?
- Why use CommonJS?
- 'yarn start serve' does not start the server HOT 1
- Bcrypt installation errors on M1 Mac HOT 4
- docker not started nps not found
- Cannot create migrations
- Witch branch Should I use ?
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 express-typescript-boilerplate.