Hi! I’m following the <Code Setup> instructions to...
# troubleshooting
g
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
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
Yep, I get the same thing when I run that command too
k
yes, its for the controller UI
can you try the command suggested by @Ken Krugler
g
Yep, I get the same error
k
which os?
g
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!! 🎉