Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to start the app : Failed at the @ start script. #259

Open
PhilippeComte opened this issue Jun 4, 2020 · 1 comment
Open

Unable to start the app : Failed at the @ start script. #259

PhilippeComte opened this issue Jun 4, 2020 · 1 comment
Labels

Comments

@PhilippeComte
Copy link

PhilippeComte commented Jun 4, 2020

Hello ,
following the instructions, I did : npm install
At npm start I get : dotenv missing
I installed : npm dotenv
Then it is express that is lacking
I've installed the latest node 12.18.0 and npm 6.14.4
and installed express and express generator
Sudo npm install -g express
Sudo npm install -g express-generator

I got issues at npm start
Failed at the @ start script.

Is it something that others have seen ?

here is the log:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle @~prestart: @
6 info lifecycle @~start: @
7 verbose lifecycle @~start: unsafe-perm in lifecycle true
8 verbose lifecycle @~start: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/pcomte/Documents/GitHub/assistant-simple/node_modules/.bin:/Users/pcomte/anaconda3/bin:/Users/pcomte/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/apache-maven-3.6.0/bin:/Users/pcomte/python/mes_scripts
9 verbose lifecycle @~start: CWD: /Users/pcomte/Documents/GitHub/assistant-simple
10 silly lifecycle @~start: Args: [ '-c', 'node server.js' ]
11 silly lifecycle @~start: Returned: code: 1  signal: null
12 info lifecycle @~start: Failed to exec start script
13 verbose stack Error: @ start: `node server.js`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack     at EventEmitter.emit (events.js:315:20)
13 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:315:20)
13 verbose stack     at maybeClose (internal/child_process.js:1021:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
14 verbose pkgid @
15 verbose cwd /Users/pcomte/Documents/GitHub/assistant-simple
16 verbose Darwin 19.5.0
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
18 verbose node v12.18.0
19 verbose npm  v6.14.4
20 error code ELIFECYCLE
21 error errno 1
22 error @ start: `node server.js`
22 error Exit status 1
23 error Failed at the @ start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

Many thanks .

@germanattanasio
Copy link
Contributor

Hi @PhilippeComte.

If you run npm install you should get all the dependencies you need including dotenv

The fact that you got an error on the dependencies makes me think that you are not running the command in the folder where the code is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants