求助HotReloading时报错:{"errno":-4048,"code":"EPERM","syscall":"lstat","path":"project\\index.android.js___jb_old___"}



  • 使用windows+webstorm11开发,开启Hot Reloading后,经常会崩溃,错误日志如下:
    0_1466082647630_1.png

    npm-debug.log中的日志如下:

    0 info it worked if it ends with ok
    1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
    1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
    1 verbose cli 'start' ]
    2 info using npm@3.8.9
    3 info using node@v6.2.0
    4 verbose run-script [ 'prestart', 'start', 'poststart' ]
    5 info lifecycle WeixinDemo@0.0.1~prestart: WeixinDemo@0.0.1
    6 silly lifecycle WeixinDemo@0.0.1~prestart: no script for prestart, continuing
    7 info lifecycle WeixinDemo@0.0.1~start: WeixinDemo@0.0.1
    8 verbose lifecycle WeixinDemo@0.0.1~start: unsafe-perm in lifecycle true
    9 verbose lifecycle WeixinDemo@0.0.1~start: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;D:\work\WeixinDemo\node_modules.bin;C:\Program Files\nodejs;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Java\jdk1.7.0_45\bin;C:\Work\adt-bundle-windows-x86_64-20140321\sdk\tools;C:\Work\adt-bundle-windows-x86_64-20140321\sdk\platform-tools;C:\Program Files\TortoiseSVN\bin;C:\Work\adt-bundle-windows-x86_64-20140321\sdk\platform-tools;C:\Work\adt-bundle-windows-x86_64-20140321\sdk\tools;C:\Program Files\Android\Android Studio\gradle\gradle-2.4\bin;C:\Program Files (x86)\Git\cmd;C:\Python27;C:\ProgramData\chocolatey\bin;C:\Program Files\nodejs;D:\Program Files\Git\cmd;C:\Program Files\Microsoft Visual Studio 8\VC\vcpackages;C:\Users\zhuyuanshuo\AppData\Roaming\npm
    10 verbose lifecycle WeixinDemo@0.0.1~start: CWD: D:\work\WeixinDemo
    11 silly lifecycle WeixinDemo@0.0.1~start: Args: [ '/d /s /c',
    11 silly lifecycle 'node node_modules/react-native/local-cli/cli.js start' ]
    12 silly lifecycle WeixinDemo@0.0.1~start: Returned: code: 1 signal: null
    13 info lifecycle WeixinDemo@0.0.1~start: Failed to exec start script
    14 verbose stack Error: WeixinDemo@0.0.1 start: node node_modules/react-native/local-cli/cli.js start
    14 verbose stack Exit status 1
    14 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:245:16)
    14 verbose stack at emitTwo (events.js:106:13)
    14 verbose stack at EventEmitter.emit (events.js:191:7)
    14 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:24:14)
    14 verbose stack at emitTwo (events.js:106:13)
    14 verbose stack at ChildProcess.emit (events.js:191:7)
    14 verbose stack at maybeClose (internal/child_process.js:850:16)
    14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
    15 verbose pkgid WeixinDemo@0.0.1
    16 verbose cwd D:\work\WeixinDemo
    17 error Windows_NT 6.1.7601
    18 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start"
    19 error node v6.2.0
    20 error npm v3.8.9
    21 error code ELIFECYCLE
    22 error WeixinDemo@0.0.1 start: node node_modules/react-native/local-cli/cli.js start
    22 error Exit status 1
    23 error Failed at the WeixinDemo@0.0.1 start script 'node node_modules/react-native/local-cli/cli.js start'.
    23 error Make sure you have the latest version of node.js and npm installed.
    23 error If you do, this is most likely a problem with the WeixinDemo package,
    23 error not with npm itself.
    23 error Tell the author that this fails on your system:
    23 error node node_modules/react-native/local-cli/cli.js start
    23 error You can get information on how to open an issue for this project with:
    23 error npm bugs WeixinDemo
    23 error Or if that isn't available, you can get their info via:
    23 error npm owner ls WeixinDemo
    23 error There is likely additional logging output above.
    24 verbose exit [ 1, true ]

    求大神帮忙啊,经常崩溃导致开发效率好低啊。。。


  • administrators

    可以安装watchman for windows试试
    https://github.com/facebook/watchman/issues/19


登录后回复