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

Unknown package manager Error

Giorgi Parunov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 10, 2023

Hello guys, Bitbucket pipelines were working really very good. I was on vacation 2 weeks and didnt deploy anything that time. When I arrive I detected that Pipiline is failed every time. I thought that it happened after my changes, but after I tried to build my another branch which was working, and its failing also. I ran the command with verbose and detected that I am getting really very strange error:

```

> NX Unknown package manager: undefined
45
46
47
HookWebpackError: Unknown package manager: undefined
48
at makeWebpackError (/opt/atlassian/pipelines/agent/build/node_modules/webpack/lib/HookWebpackError.js:48:9)
49
at /opt/atlassian/pipelines/agent/build/node_modules/webpack/lib/Compilation.js:3068:12
50
at eval (eval at create (/opt/atlassian/pipelines/agent/build/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:71:1)
51
at fn (/opt/atlassian/pipelines/agent/build/node_modules/webpack/lib/Compilation.js:481:17)
52
at _next0 (eval at create (/opt/atlassian/pipelines/agent/build/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:69:1)
53
at eval (eval at create (/opt/atlassian/pipelines/agent/build/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:82:1)
54
at eval (eval at create (/opt/atlassian/pipelines/agent/build/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:14:1)
55
-- inner error --
56
Error: Unknown package manager: undefined
57
at getLockFileName (/opt/atlassian/pipelines/agent/build/node_modules/nx/src/plugins/js/lock-file/lock-file.js:109:11)
58
at /opt/atlassian/pipelines/agent/build/node_modules/@nx/webpack/src/plugins/generate-package-json-plugin.js:42:64
59
at fn (/opt/atlassian/pipelines/agent/build/node_modules/webpack/lib/Compilation.js:479:10)
60
at _next0 (eval at create (/opt/atlassian/pipelines/agent/build/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:69:1)
61
at eval (eval at create (/opt/atlassian/pipelines/agent/build/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:82:1)
62
at eval (eval at create (/opt/atlassian/pipelines/agent/build/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:14:1)
63
64
```

Trying to fix this problem second day, but cannot understand what is happening.
I am using NX for monorepo. I have two react and one node apps there. Node is working good. Problem happens to both react apps.

2 answers

1 vote
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 11, 2023

Hi Giorgi and welcome to the community!

I would suggest checking the steps in the following guide, specifically Scenario 1: Builds were successful earlier, but started failing recently:

This includes possible causes and troubleshooting steps you can follow. If you still cannot figure it out, you can post the build URLs in the support ticket you created, and the engineer working on your ticket can help you with troubleshooting.

Please feel free to reach out if you have any questions.

Kind regards,
Theodora

0 votes
csantosdev
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 11, 2023

For anyone that may have Node or NPM issues. What happened to us these passed few days was that the BitBucket Pipelines image it uses, for whatever reason, started using a very old version of Node and our NPM install process was failing. So we had to update our bitbucket pipelines YAML file to tell their system which version of Node to use. This solved our issue.

Docs:

https://support.atlassian.com/bitbucket-cloud/docs/javascript-nodejs-with-bitbucket-pipelines/

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events