npm" onchange"插件与EPIPE的ERR

时间:2016-08-03 02:04:33

标签: npm

onchange: process completed with code 0
onchange: change to css\myfile.css
onchange: executing "npm run build:css"
onchange: unlink to css\.#myfile.css
onchange: killing process and restarting
onchange: process exited with SIGTERM
onchange: executing "npm run build:css"
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "prefix" "-g"
npm ERR! node v4.2.4
npm ERR! npm  v2.14.12
npm ERR! code EPIPE
npm ERR! errno EPIPE
npm ERR! syscall write

npm ERR! write EPIPE
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     C:\path\to\project\npm-debug.log

1 个答案:

答案 0 :(得分:0)

css\.#myfile.css是一个Emacs锁文件,当保存原始文件时,锁文件将被删除。

通过

.emacs/init.el中禁用锁定文件
;; Disable lock files .# as this is for single-user configuration
(setq create-lockfiles nil)

停止发生错误。