启动cnode失败:(
发布于 10 年前 作者 kingapple 4736 次浏览 最后一次编辑是 8 年前

神马情况? <code> E:\projects\web[@tmp](/user/tmp)\nodeclub>node app.js

E:\projects\web[@tmp](/user/tmp)\nodeclub\node_modules\newrelic\lib\config.js:828 throw new Error( ^ Error: Unable to read configuration file E:\projects\web[@tmp](/user/tmp)\nodeclub\newrelic. js. A default configuration file can be copied from E:\projects\web[@tmp](/user/tmp)\nodeclub\node_modules \newrelic\lib\config.default.js and renamed to ‘newrelic.js’ in the directory from which you’ll be starting your application. at Function.initialize (E:\projects\web[@tmp](/user/tmp)\nodeclub\node_modules\newrelic
lib\config.js:828:11) at Object.<anonymous> (E:\projects\web[@tmp](/user/tmp)\nodeclub\node_modules\newrelic\l ib\logger.js:51:57) at Module._compile (module.js:456:26) at Object.Module._extensions…js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> (E:\projects\web[@tmp](/user/tmp)\nodeclub\node_modules\newrelic\i ndex.js:4:15) at Module._compile (module.js:456:26) </code>

11 回复

异常信息里其实已经说清楚了

Error: Unable to read configuration file E:\projects\web\@tmp\nodeclub\newrelic.
js. A default
configuration file can be copied from E:\projects\web\@tmp\nodeclub\node_modules
\newrelic\lib\config.default.js

@slightboy 可是当前目录已经有这个文件呢:(

E:\projects\web[@tmp](/user/tmp)\nodeclub 的目录

07/28/2014 06:44 PM <DIR> . 07/28/2014 06:44 PM <DIR> … 07/28/2014 06:43 PM <DIR> .git 07/28/2014 06:24 PM 221 .gitignore 07/28/2014 06:24 PM 683 .jshintrc 07/28/2014 06:24 PM 24 .naeignore 07/28/2014 06:24 PM 60 .travis.yml 07/28/2014 06:24 PM 2,967 app.js 07/28/2014 06:24 PM 1,328 AUTHORS 07/28/2014 06:24 PM <DIR> common 07/28/2014 06:24 PM 3,298 config.default.js 07/28/2014 06:24 PM <DIR> controllers 07/28/2014 06:24 PM 7,534 History.md 07/28/2014 06:24 PM <DIR> libs 07/28/2014 06:24 PM 1,090 LICENSE 07/28/2014 06:24 PM 947 Makefile 07/28/2014 06:24 PM <DIR> middlewares 07/28/2014 06:24 PM <DIR> models

07/28/2014 06:24 PM 651 newrelic.js

07/28/2014 06:28 PM <DIR> node_modules 07/28/2014 06:28 PM 967,147 npm-debug.log 07/28/2014 06:24 PM 1,157 package.json 07/28/2014 06:24 PM <DIR> plugins 07/28/2014 06:24 PM <DIR> proxy 07/28/2014 06:24 PM <DIR> public 07/28/2014 06:24 PM 2,575 README.md 07/28/2014 06:24 PM 4,495 routes.js 07/28/2014 06:24 PM <DIR> services 07/28/2014 06:24 PM <DIR> test 07/28/2014 06:24 PM 10,880 test_results.md 07/28/2014 06:24 PM <DIR> views 16 个文件 1,005,057 字节 15 个目录 112,027,037,696 可用字节

@slightboy

无法通过github注册:(

@slightboy 改为config.js是想当然?好像说明文档中没写,不过改了下果然可以:)

@kingapple 嗯 想当然的, 我没装过, 至于 oauth 那个 估计要在后台设置 github oauth 的 key 和 sercet

@slightboy github开发者服务?

@slightboy 还需要licence key,碉堡了 <code> NodeClub listening on port 3000 in development mode God bless love… You can debug your app with http://localhost:3000 New Relic for Node.js halted startup due to an error: Error: Invalid license key, please contact support@newrelic.com at StreamSink.parser [as callback] (E:\projects\web[@tmp](/user/tmp)\nodeclub\node_modules \newrelic\lib\collector\parse-response.js:81:25) at StreamSink.end (E:\projects\web[@tmp](/user/tmp)\nodeclub\node_modules\newrelic\lib\uti l\stream-sink.js:43:8) at IncomingMessage.onend (_stream_readable.js:483:10) at IncomingMessage.g (events.js:180:16) at IncomingMessage.EventEmitter.emit (events.js:117:20) at _stream_readable.js:920:16 at E:\projects\web[@tmp](/user/tmp)\nodeclub\node_modules\newrelic\node_modules\continuati on-local-storage\node_modules\async-listener\glue.js:177:31 at process._tickCallback (node.js:415:13) </code>

楼主,我在使用PM2来启动项目的时候也是遇到类似问题 大神请点击

@slightboy 我在使用PM2来启动项目的时候也是遇到类似问题,请问可以指导一下吗 大神请点击

回到顶部