如何使用AWS Codecommit repo作为npm依赖项
这是我的buildspec文件:如何使用AWS Codecommit repo作为npm依赖项,npm,aws-codecommit,Npm,Aws Codecommit,这是我的buildspec文件: version: 0.2 env: git-credential-helper: yes phases: install: runtime-versions: nodejs: 10 commands: - npm install build: commands: - npm run build post_build: commands: - echo Build co
version: 0.2
env:
git-credential-helper: yes
phases:
install:
runtime-versions:
nodejs: 10
commands:
- npm install
build:
commands:
- npm run build
post_build:
commands:
- echo Build completed on `date`
在package.json中,我添加了:-
dependencies : {
"sharedLib":"git+https://git-codecommit.us-east-1.amazonaws.com/v1/repos/sharedLib#branchname"
}
我在npm安装中遇到构建错误。任何帮助都将被通知。通过IAM服务向分配给代码生成的角色提供代码提交访问权限
然后应该运行代码生成。通过IAM服务向分配给代码生成的角色授予代码提交访问权
然后代码构建应该运行。哦,我错过了这个东西。谢谢;它现在对我起作用了。哦,我错过了这件事。谢谢;现在对我有用了。