Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

npm ERR

Dillon Liu December 19, 2019

My react app works when I run npm run start at my local computer, but npm run start doesn't work in the pipeline in bitbucket. 

this is log:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli '/usr/local/lib/node_modules/npm/bin/npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'start',
1 verbose cli '--scripts-prepend-node-path=auto' ]
2 info using npm@6.4.1
3 info using node@v10.15.3
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle @madoor/coreui-free-react-admin-template@2.6.0~prestart: @madoor/coreui-free-react-admin-template@2.6.0
6 info lifecycle @madoor/coreui-free-react-admin-template@2.6.0~start: @madoor/coreui-free-react-admin-template@2.6.0
7 verbose lifecycle @madoor/coreui-free-react-admin-template@2.6.0~start: unsafe-perm in lifecycle true
8 verbose lifecycle @madoor/coreui-free-react-admin-template@2.6.0~start: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/dillonliu/Programming/Madoor/topstar-web-test/node_modules/.bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
9 verbose lifecycle @madoor/coreui-free-react-admin-template@2.6.0~start: CWD: /Users/dillonliu/Programming/Madoor/topstar-web-test
10 silly lifecycle @madoor/coreui-free-react-admin-template@2.6.0~start: Args: [ '-c', 'react-scripts start' ]
11 info lifecycle @madoor/coreui-free-react-admin-template@2.6.0~start: Failed to exec start script
12 verbose stack Error: @madoor/coreui-free-react-admin-template@2.6.0 start: `react-scripts start`
12 verbose stack spawn ENOENT
12 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18)
12 verbose stack at ChildProcess.emit (events.js:189:13)
12 verbose stack at maybeClose (internal/child_process.js:970:16)
12 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
13 verbose pkgid @madoor/coreui-free-react-admin-template@2.6.0
14 verbose cwd /Users/dillonliu/Programming/Madoor/topstar-web-test
15 verbose Darwin 19.2.0
16 verbose argv "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/bin/npm-cli.js" "run" "start" "--scripts-prepend-node-path=auto"
17 verbose node v10.15.3
18 verbose npm v6.4.1
19 error file sh
20 error code ELIFECYCLE
21 error errno ENOENT
22 error syscall spawn
23 error @madoor/coreui-free-react-admin-template@2.6.0 start: `react-scripts start`
23 error spawn ENOENT
24 error Failed at the @madoor/coreui-free-react-admin-template@2.6.0 start script.
24 error This is probably not a problem with npm. There is likely additional logging output above.
25 verbose exit [ 1, true ]

 

this is the error

npm ERR! code ELIFECYCLEnpm

ERR! errno 1npm ERR! @madoor/coreui-free-react-admin-template@2.6.0 build: `react-scripts build`npm ERR! Exit status 1npm ERR! npm ERR! Failed at the @madoor/coreui-free-react-admin-template@2.6.0 build 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/2019-12-20T06_42_34_175Z-debug.log

1 answer

0 votes
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 11, 2021

Hi! 

did you extend logs? 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events