我无法在Elastic Beanstalk上安装parse-server
软件包。当我指向"^3.0.0"
时,安装完成正常,但是,如果我指向"git+https://github.com/parse-community/parse-server.git"
,则该软件包无法构建:
parse-server@3.0.0 install /tmp/deployment/application/node_modules/parse-server
npm run build
parse-server@3.0.0 build /tmp/deployment/application/node_modules/parse-server
babel src/ -d lib/ --copy-files
sh: babel: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! parse-server@3.0.0 build: `babel src/ -d lib/ --copy-files`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the parse-server@3.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
当npm在安装过程中为parse-server
软件包运行build时,babel
应该在路径中,因为parse-server
具有@babel/cli
作为dev依赖项,对吗?我通过在环境中将NPM_USE_PRODUCTION
设置为false来确保npm不在弹性beantalk实例上以生产模式运行,以确保安装了dev依赖项,这反映在我的日志中:
Running npm install: /opt/elasticbeanstalk/node-install/node-v8.11.4-linux-x64/bin/npm
Setting npm config jobs to 1
npm config jobs set to 1
Running npm without --production flag