mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 01:33:09 +02:00
Use npx to avoid global install of ts-node
This commit is contained in:
parent
351b236014
commit
4b747d20b7
1 changed files with 1 additions and 2 deletions
|
@ -220,8 +220,7 @@ const user = await Users.findOne(userId).then(ensure);
|
|||
|
||||
### Migration作成方法
|
||||
```
|
||||
npm i -g ts-node
|
||||
ts-node ./node_modules/typeorm/cli.js migration:generate -n 変更の名前
|
||||
npx ts-node ./node_modules/typeorm/cli.js migration:generate -n 変更の名前
|
||||
```
|
||||
|
||||
作成されたスクリプトは不必要な変更を含むため除去してください。
|
||||
|
|
Loading…
Reference in a new issue