node.js - react npm test 的失败
PHP中文网
PHP中文网 2017-04-17 13:02:07
[Node.js讨论组]
return (
      

Todo List
Todo List

);

报错信息如下

zandeMacBook-Pro:todo juluad$ npm run lint

> todo@1.0.0 lint /Users/www/react/todo
> eslint ./app ./server.js


/Users/www/react/todo/app/components/App/index.js
  64:56  error  Multiple spaces found before '<'  no-multi-spaces

✖ 1 problem (1 error, 0 warnings)


npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "lint"
npm ERR! node v4.2.0
npm ERR! npm  v2.14.7
npm ERR! code ELIFECYCLE
npm ERR! todo@1.0.0 lint: `eslint ./app ./server.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the todo@1.0.0 lint script 'eslint ./app ./server.js'.
npm ERR! This is most likely a problem with the todo package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     eslint ./app ./server.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls todo
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/www/react/todo/npm-debug.log
zandeMacBook-Pro:todo juluad$ 

PHP中文网
PHP中文网

认证高级PHP讲师

全部回复(1)
ringa_lee

检查 /Users/www/react/todo/app/components/App/index.js 第 64 行,< 之前不能有多个空格。

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号