• home > webfront > ECMAS > npm-node >

    yeoman创建项目,nodejs报错Error: EACCES: permission denied, open

    Author:zhoulujun@live.cn Date:

    yeoman创建项目,nodejs报错Error:​fs js:634 return binding open(pathModule _makeLong(path), stringToFlags(flags), mode); EACCES: permission denied, open


    yeoman创建项目,nodejs报错Error:fs js:634

      return binding open(pathModule _makeLong(path), stringToFlags(flags), mode); EACCES: permission denied, open 

     解决方案为:把当前目录改为 可读写……




    fs.js:634

      return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);

                     ^


    Error: EACCES: permission denied, open '/Users/SF/Documents/www/requirejs/bower.json'

        at Error (native)

        at Object.fs.openSync (fs.js:634:18)

        at Object.fs.writeFileSync (fs.js:1327:33)

        at write (/usr/local/lib/node_modules/generator-angular-require/node_modules/mem-fs-editor/lib/actions/commit.js:14:6)

        at DestroyableTransform._transform (/usr/local/lib/node_modules/generator-angular-require/node_modules/mem-fs-editor/lib/actions/commit.js:43:7)

        at DestroyableTransform.Transform._read (/usr/local/lib/node_modules/generator-angular-require/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:159:10)

        at DestroyableTransform.Transform._write (/usr/local/lib/node_modules/generator-angular-require/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:147:83)

        at doWrite (/usr/local/lib/node_modules/generator-angular-require/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:313:64)

        at writeOrBuffer (/usr/local/lib/node_modules/generator-angular-require/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:302:5)

        at DestroyableTransform.Writable.write (/usr/local/lib/node_modules/generator-angular-require/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:241:11)

    nodejs,yeoman创建项目报错


    转载本站文章《yeoman创建项目,nodejs报错Error: EACCES: permission denied, open 》,
    请注明出处:https://www.zhoulujun.cn/html/webfront/ECMAScript/nodejs/7843.html