阿里云
发表主题 回复主题
  • 1355阅读
  • 1回复

node6.3 本地测试没有问题,线上build时出现 babelnot found 错误

级别: 新人
发帖
2
云币
3


1 seconds$ npm run build

> sev@1.0.0 build /root/source/sev
> babel src --out-dir dist

sh: 1: babel: not found

npm ERR! Linux 3.10.0-514.6.2.el7.x86_64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"
npm ERR! node v6.3.1
npm ERR! npm  v3.10.3
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! sev@1.0.0 build: `babel src --out-dir dist`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the sev@1.0.0 build script 'babel src --out-dir dist'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the sev package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     babel src --out-dir dist
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs sev
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls sev
npm ERR! There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! Please include the following file with any support request:
npm ERR!     /root/source/sev/npm-debug.log


The command "npm run build" exited with 1.
Build failed.
级别: 新人
发帖
2
云币
3
只看该作者 沙发  发表于: 2017-05-02
Renode6.3 本地测试没有问题,线上build时出现 babelnot found 错误
附上源码仓库: git@code.aliyun.com:joehello/sev.git
发表主题 回复主题
« 返回列表上一主题下一主题

限100 字节
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
 
验证问题: ECS是阿里云提供的什么服务? 正确答案:云服务器
上一个 下一个