2017-04-13 80 views
0

从今天上午开始,我在使用Bitbucket管道的React应用程序的构建过程中遇到错误。除了一些不应该引发此错误的调​​整之外,没有什么改变到我的应用程序。Bitbucket在构建应用程序时管道错误

当我尝试在本地构建我的应用程序时,我不会收到任何错误。在下面,您可以找到NPM在管道中引发的错误。

+ npm run build-debug 
npm info it worked if it ends with ok 
npm info using [email protected] 
npm info using [email protected] 
npm info prebuild-debug [email protected] 
npm info build-debug [email protected] 
> [email protected] build-debug /opt/atlassian/pipelines/agent/build 
> node scripts/build-debug.js 
Creating an optimized production build... 
Failed to compile. 
Module not found: Error: Cannot resolve module 'promise-polyfill' in /opt/atlassian/pipelines/agent/build/node_modules/firebase/app 
npm info [email protected] Failed to exec build-debug script 
npm ERR! Linux 4.9.16-coreos-r1 
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build-debug" 
npm ERR! node v4.6.0 
npm ERR! npm v2.15.9 
npm ERR! code ELIFECYCLE 
npm ERR! [email protected] build-debug: `node scripts/build-debug.js` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] build-debug script 'node scripts/build-debug.js'. 
npm ERR! This is most likely a problem with the webplayer package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  node scripts/build-debug.js 
npm ERR! You can get information on how to open an issue for this project with: 
npm ERR!  npm bugs webplayer 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR! 
npm ERR!  npm owner ls webplayer 
npm ERR! There is likely additional logging output above. 
npm ERR! Please include the following file with any support request: 
npm ERR!  /opt/atlassian/pipelines/agent/build/npm-debug.log 

在此先感谢!

回答

0

对于有此问题的人,我发现了一个修复程序。 我们所有的项目都在我们公司使用Firebase,但无法获得槽式管道或Docker容器。经过一些研究后,出于某种原因,npm软件包promise-polyfill在Node版本4.0.0注册表中不存在?我们将容器图像更新为节点版本7.9.0,现在一切正常!

相关问题