[GH-ISSUE #262] not find .env and not find now.sh #92

Closed
opened 2026-03-03 00:18:20 +03:00 by kerem · 3 comments
Owner

Originally created by @zhghg on GitHub (Jan 8, 2020).
Original GitHub issue: https://github.com/BoostIO/BoostNote-App/issues/262

Current behavior

execute npm run build,logs show : not find .env.
I copy now.json to .env,npm run is ok.

Aflter build end, I want to run ,but not find now.sh .

Expected behavior

run ok

Environment

  • Version :0.1.3
  • OS Version and name :Mac os 10.14.4
Originally created by @zhghg on GitHub (Jan 8, 2020). Original GitHub issue: https://github.com/BoostIO/BoostNote-App/issues/262 # Current behavior execute `npm run build`,logs show : not find .env. I copy now.json to .env,npm run is ok. Aflter build end, I want to run ,but not find now.sh . # Expected behavior run ok # Environment - Version :0.1.3 - OS Version and name :Mac os 10.14.4
kerem closed this issue 2026-03-03 00:18:20 +03:00
Author
Owner

@Rokt33r commented on GitHub (Jan 8, 2020):

If you want to contribute this project, npm run dev should be enough.

<!-- gh-comment-id:572119243 --> @Rokt33r commented on GitHub (Jan 8, 2020): If you want to contribute this project, `npm run dev` should be enough.
Author
Owner

@changsijay commented on GitHub (Sep 8, 2020):

same here git clone https://github.com/BoostIO/BoostNote.next && cd BoostNote.next && npm i && npm run dev

> boostnote.next@0.9.1 dev /Users/csj/github/BoostNote.next
> npm run dev:webpack -- --open-page "app"


> boostnote.next@0.9.1 dev:webpack /Users/csj/github/BoostNote.next
> env-cmd cross-env NODE_ENV=development TS_NODE_PROJECT="tsconfig-webpack.json" webpack-dev-server --mode development "--open-page" "app"

Error: Failed to find .env file at default paths: [./.env,./.env.js,./.env.json]
    at getEnvFile (/Users/csj/github/BoostNote.next/node_modules/env-cmd/dist/get-env-vars.js:58:11)
    at async Object.EnvCmd (/Users/csj/github/BoostNote.next/node_modules/env-cmd/dist/env-cmd.js:39:15)
    at async Object.CLI (/Users/csj/github/BoostNote.next/node_modules/env-cmd/dist/env-cmd.js:19:16)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
<!-- gh-comment-id:688588519 --> @changsijay commented on GitHub (Sep 8, 2020): same here `git clone https://github.com/BoostIO/BoostNote.next && cd BoostNote.next && npm i && npm run dev` ``` > boostnote.next@0.9.1 dev /Users/csj/github/BoostNote.next > npm run dev:webpack -- --open-page "app" > boostnote.next@0.9.1 dev:webpack /Users/csj/github/BoostNote.next > env-cmd cross-env NODE_ENV=development TS_NODE_PROJECT="tsconfig-webpack.json" webpack-dev-server --mode development "--open-page" "app" Error: Failed to find .env file at default paths: [./.env,./.env.js,./.env.json] at getEnvFile (/Users/csj/github/BoostNote.next/node_modules/env-cmd/dist/get-env-vars.js:58:11) at async Object.EnvCmd (/Users/csj/github/BoostNote.next/node_modules/env-cmd/dist/env-cmd.js:39:15) at async Object.CLI (/Users/csj/github/BoostNote.next/node_modules/env-cmd/dist/env-cmd.js:19:16) npm ERR! code ELIFECYCLE npm ERR! errno 1 ```
Author
Owner

@Flexo013 commented on GitHub (Sep 13, 2020):

@changsijay Did you make the .env file?

<!-- gh-comment-id:691651965 --> @Flexo013 commented on GitHub (Sep 13, 2020): @changsijay Did you make the `.env` file?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/BoostNote-App#92
No description provided.