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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

Hi! 

did you extend logs? 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Calling any interview participants for Bitbucket Data Center

Hi everyone,  We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...

442 views 4 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you