Windows下使用IDEA编译Flink1.9.0源码npm报错

作者:faaronzheng 转载请注明出处!


Flink1.9.0的flink-runtime-web模块引入了frontend-maven-plugin依赖,并安装了node和部分依赖组件,然而在编译时遇到Error: EPERM: operation not permitted, unlink 的错误,参考issues#2464 增加 --no-bin-links的设置后不在报错。

重新编译后发现一直卡在 [INFO] Running ‘npm install --cache-max=0 --no-save’ in /opt/gitrepo/flink-runtime-web/web-dashboard 这里,flink\flink-runtime-web\web-dashboard\node_modules路径下的依赖组件也一直没有更新,应该是网络原因,添加国内仓库后顺利编译

<nodeDownloadRoot>https://registry.npm.taobao.org/dist/</nodeDownloadRoot>
<npmDownloadRoot>https://registry.npmjs.org/npm/-/</npmDownloadRoot>

完整的设置参考

<plugin>
		<groupId>com.github.eirslett</groupId>
			<artifactId>frontend-maven-plugin</artifactId>
			<version>1.6</version>
			<executions>
				<execution>
					<id>install node and npm</id>
					<goals>
						<goal>install-node-and-npm</goal>
					</goals>
					<configuration>
						<nodeDownloadRoot>https://registry.npm.taobao.org/dist/</nodeDownloadRoot>
						<npmDownloadRoot>https://registry.npmjs.org/npm/-/</npmDownloadRoot>
						<nodeVersion>v10.9.0</nodeVersion>
					</configuration>
				</execution>
				<execution>
					<id>npm install</id>
					<goals>
						<goal>npm</goal>
					</goals>
					<configuration>
						<arguments>ci --cache-max=0 --no-save  --no-bin-links</arguments>
						<environmentVariables>
							<HUSKY_SKIP_INSTALL>true</HUSKY_SKIP_INSTALL>
						</environmentVariables>
					</configuration>
				</execution>
				<execution>
					<id>npm run build</id>
					<goals>
						<goal>npm</goal>
					</goals>
					<configuration>
						<arguments>run build</arguments>
					</configuration>
				</execution>
			</executions>
			<configuration>
				<workingDirectory>web-dashboard</workingDirectory>
			</configuration>
</plugin>
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值