https://pinot.apache.org/ logo
g

Grace Walkuski

02/08/2021, 6:56 PM
Hi! I’m following the Code Setup instructions to setup my environment and when I run this maven command, I get the following error.
Copy code
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.1:npm (npm install) on project pinot-controller: Failed to run task: 'npm install' failed. (error code 1) -> [Help 1]
The pinot-controller package seems to be a java project, so why is it trying to run
npm install
? How do I get around this? Thanks!
k

Ken Krugler

02/08/2021, 6:59 PM
FWIW I’ve also seen this error when running the recommended
mvn clean install -DskipTests -Pbin-dist
(from the top), and all required Java artifacts do get created, so I’ve ignored the issue. As to why it’s running
npm install
, I think that’s for the controller UI.
g

Grace Walkuski

02/08/2021, 7:06 PM
Yep, I get the same thing when I run that command too
k

Kishore G

02/08/2021, 7:28 PM
yes, its for the controller UI
can you try the command suggested by @Ken Krugler
g

Grace Walkuski

02/08/2021, 7:29 PM
Yep, I get the same error
k

Kishore G

02/08/2021, 7:31 PM
which os?
g

Grace Walkuski

02/08/2021, 7:33 PM
macOS Catalina 10.15.7
Update: the issue was that
npm install
could not run in the
incubator-pinot/pinot-controller/src/main/resources
directory. The fix was to add the
--registry=<https://registry.npmjs.org/>
flag. Can be fixed without the flag by adding an
.npmrc
file with the following contents:
Copy code
registry=<https://registry.npmjs.org/>
Thanks to @Kishore G for the help!! 🎉