啟動hubot報錯

2021-08-27 05:10:17 字數 1279 閱讀 2459

1、安裝hubot

npm install -g yo
2、啟動

執行時如果報如下錯誤:

usr/lib/node_modules/yo/node_modules/write-file-atomic/index.js:197

throw err

^error: eacces: permission denied, open '/root/.config/insight-nodejs/insight-yo.json.1460022709'

at error (native)

at object.fs.opensync (fs.js:642:18)

at function.writefilesync [as sync] (/usr/lib/node_modules/yo/node_modules/write-file-atomic/index.js:180:17)

at conf.set store [as store] (/usr/lib/node_modules/yo/node_modules/conf/index.js:142:19)

at conf.set (/usr/lib/node_modules/yo/node_modules/conf/index.js:64:14)

at insight.set optout [as optout] (/usr/lib/node_modules/yo/node_modules/insight/lib/index.js:56:15)

at object.(/usr/lib/node_modules/yo/lib/cli.js:198:18)

at module._compile (module.js:577:32)

at object.module._extensions..js (module.js:586:10)

at module.load (module.js:494:32)

該報錯是由於檔案的所有者有問題,嘗試以下解決方法:

chown -r

$user /root/

.config/insight-nodejs

/

注意:/root/.config/insite-nodejs是上面出現的那個檔案的目錄(error: eacces: permission denied, open 『/root/.config/insight-nodejs/insight-yo.json.1460022709』)根據個人實際情況更改

tomcat 啟動報錯

tomcat 啟動日誌報出以下錯誤 error transport error 202 bind failed address already in use transport.c l41 error jdwp transport dt socket failed to initialize,tra...

nfs啟動報錯

root localhost service nfs start starting nfs services ok starting nfs mountd failed starting nfs daemon rpc.nfsd writing fd to kernel failed errno 11...

tomcat啟動報錯

toc 啟動錯誤 does not exist or is not a readable directory server tomcat v7.0 server at localhost failed to start.解決辦法 把你工作空間資料夾下的如下路徑開啟 metadata plugins ...