首页 > Mac os下 安装generator-jquery-boilerplate报错

Mac os下 安装generator-jquery-boilerplate报错

执行语句sudo cnpm install -g generator-jquery-boilerplate --verbose
报错信息
53757 info install request@2.60.0
53758 info postinstall request@2.60.0
53759 verbose unlock done using /Users/sunshine/.cnpm/_locks/request-ed8a412f022e2ef5.lock for /usr/local/lib/node_modules/yo/node_modules/insight/node_modules/request
53760 verbose about to build /usr/local/lib/node_modules/yo/node_modules/insight
53761 info build /usr/local/lib/node_modules/yo/node_modules/insight
53762 info linkStuff insight@0.6.0
53763 silly linkStuff insight@0.6.0 has /usr/local/lib/node_modules/yo/node_modules as its parent node_modules
53764 silly linkStuff insight@0.6.0 is part of a global install
53765 silly linkStuff insight@0.6.0 is installed into a global node_modules
53766 verbose linkBins insight@0.6.0
53767 verbose linkMans insight@0.6.0
53768 verbose rebuildBundles insight@0.6.0
53769 verbose rebuildBundles [ '.bin',
53769 verbose rebuildBundles 'async',
53769 verbose rebuildBundles 'lodash.debounce',
53769 verbose rebuildBundles 'object-assign',
53769 verbose rebuildBundles 'os-name',
53769 verbose rebuildBundles 'request',
53769 verbose rebuildBundles 'tough-cookie' ]
53770 info install insight@0.6.0
53771 info postinstall insight@0.6.0
53772 verbose unlock done using /Users/sunshine/.cnpm/_locks/insight-3d916e4b88aa6a69.lock for /usr/local/lib/node_modules/yo/node_modules/insight
53773 verbose about to build /usr/local/lib/node_modules/yo
53774 verbose unlock done using /Users/sunshine/.cnpm/_locks/yo-c80abb7e04f27e35.lock for /usr/local/lib/node_modules/yo
53775 verbose unlock done using /Users/sunshine/.cnpm/_locks/generator-jquery-boilerp-0b3ae66046dc3df2.lock for /usr/local/lib/node_modules/generator-jquery-boilerplate
53776 verbose stack Error: spawn-sync@1.0.13 postinstall: node postinstall
53776 verbose stack spawn ENOENT
53776 verbose stack at ChildProcess. (/usr/local/lib/node_modules/cnpm/node_modules/npm/lib/utils/spawn.js:17:16)
53776 verbose stack at ChildProcess.emit (events.js:110:17)
53776 verbose stack at maybeClose (child_process.js:1015:16)
53776 verbose stack at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
53777 verbose pkgid spawn-sync@1.0.13
53778 verbose cwd /Users/sunshine
53779 error Darwin 14.4.0
53780 error argv "node" "/usr/local/lib/node_modules/cnpm/node_modules/.bin/npm" "--userconfig=/Users/sunshine/.cnpmrc" "--disturl=https://npm.taobao.org/mirrors/node" "--cache=/Users/sunshine/.cnpm" "--registry=https://registry.npm.taobao.org" "--node-gyp=/usr/local/lib/node_modules/cnpm/node_modules/pangyp/bin/node-gyp.js" "install" "-g" "generator-jquery-boilerplate" "--verbose"
53781 error node v0.12.7
53782 error npm v2.13.2
53783 error file sh
53784 error code ELIFECYCLE
53785 error errno ENOENT
53786 error syscall spawn
53787 error spawn-sync@1.0.13 postinstall: node postinstall
53787 error spawn ENOENT
53788 error Failed at the spawn-sync@1.0.13 postinstall script 'node postinstall'.
53788 error This is most likely a problem with the spawn-sync package,
53788 error not with npm itself.
53788 error Tell the author that this fails on your system:
53788 error node postinstall
53788 error You can get their info via:
53788 error npm owner ls spawn-sync
53788 error There is likely additional logging output above.
53789 verbose exit [ 1, true ]
53790 verbose unbuild lib/node_modules/yo/node_modules/cross-spawn/node_modules/spawn-sync
53791 info preuninstall spawn-sync@1.0.13
53792 info uninstall spawn-sync@1.0.13
53793 verbose unbuild rmStuff spawn-sync@1.0.13 from /usr/local/lib/node_modules
53794 verbose unbuild rmStuff in /usr/local/lib/node_modules/yo/node_modules/cross-spawn/node_modules
53795 info postuninstall spawn-sync@1.0.13
53796 silly gentlyRm /usr/local/lib/node_modules/yo/node_modules/cross-spawn/node_modules/spawn-sync is being purged from base /usr/local
53797 verbose gentlyRm don't care about contents; nuking /usr/local/lib/node_modules/yo/node_modules/cross-spawn/node_modules/spawn-sync
53798 silly vacuum-fs purging /usr/local/lib/node_modules/yo/node_modules/cross-spawn/node_modules/spawn-sync
53799 silly vacuum-fs quitting because other entries in /usr/local/lib/node_modules/yo/node_modules/cross-spawn/node_modules
53800 verbose unbuild lib/node_modules/yo/node_modules/cross-spawn
53801 info preuninstall cross-spawn@0.4.1
53802 info uninstall cross-spawn@0.4.1
53803 verbose unbuild rmStuff cross-spawn@0.4.1 from /usr/local/lib/node_modules
53804 verbose unbuild rmStuff in /usr/local/lib/node_modules/yo/node_modules
53805 info postuninstall cross-spawn@0.4.1
53806 silly gentlyRm /usr/local/lib/node_modules/yo/node_modules/cross-spawn is being purged from base /usr/local
53807 verbose gentlyRm don't care about contents; nuking /usr/local/lib/node_modules/yo/node_modules/cross-spawn
53808 silly vacuum-fs purging /usr/local/lib/node_modules/yo/node_modules/cross-spawn
53809 silly vacuum-fs quitting because other entries in /usr/local/lib/node_modules/yo/node_modules
53810 verbose unbuild lib/node_modules/yo
53811 info preuninstall yo@1.4.7
53812 info uninstall yo@1.4.7
53813 verbose unbuild rmStuff yo@1.4.7 from /usr/local/lib/node_modules
53814 silly gentlyRm /usr/local/bin/yo is being gently removed
53815 silly gentlyRm verifying /usr/local is an npm working directory
53816 silly gentlyRm containing path /usr/local is under npm's control, in /usr/local
53817 silly gentlyRm deletion target /usr/local/bin/yo is under /usr/local
53818 verbose gentlyRm vacuuming from /usr/local/bin/yo up to /usr/local
53819 info postuninstall yo@1.4.7
53820 silly gentlyRm /usr/local/lib/node_modules/yo is being purged from base /usr/local
53821 verbose gentlyRm don't care about contents; nuking /usr/local/lib/node_modules/yo
53822 silly vacuum-fs purging /usr/local/lib/node_modules/yo
53823 silly vacuum-fs quitting because other entries in /usr/local/lib/node_modules
53824 verbose unbuild lib/node_modules/generator-jquery-boilerplate
53825 info preuninstall generator-jquery-boilerplate@0.3.0
53826 info uninstall generator-jquery-boilerplate@0.3.0
53827 verbose unbuild rmStuff generator-jquery-boilerplate@0.3.0 from /usr/local/lib/node_modules
53828 info postuninstall generator-jquery-boilerplate@0.3.0
53829 silly gentlyRm /usr/local/lib/node_modules/generator-jquery-boilerplate is being purged from base /usr/local
53830 verbose gentlyRm don't care about contents; nuking /usr/local/lib/node_modules/generator-jquery-boilerplate
53831 silly vacuum-fs purging /usr/local/lib/node_modules/generator-jquery-boilerplate
53832 silly vacuum-fs quitting because other entries in /usr/local/lib/node_modules

【热门文章】
【热门文章】