0
的windowsXP從官方網站的Node.js V0.10.1下載SMI包咕嚕-的contrib,我想從GitHub https://github.com/raDiesle/backbone.js-jquerymobile-boilerplate-template#general運行代碼檢查的node.js V0.10.1 NPM安裝在Windows
快速入門說:
Download and install node.js for your os system and run in your project folder:
npm install -g grunt (installs grunt command line tool)
npm install -g bbb (is a grunt addon, which offers backbone templates and task collections like grunt-contrib)
npm install grunt-contrib (needed to install not global, because you'll need the newest version)
咕嚕和bbb安裝成功,但咕嚕-的contrib失敗
調試是那麼的漫長,從高端副本
33742 verbose read json E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-jshint\node_modules\jshint\node_modules\cli\node_modules\glob\node_modules\inherits\package.json
33743 silly lockFile 173eb7fd-dules-glob-node-modules-inherits E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-jshint\node_modules\jshint\node_modules\cli\node_modules\glob\node_modules\inherits
33744 silly lockFile 173eb7fd-dules-glob-node-modules-inherits E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-jshint\node_modules\jshint\node_modules\cli\node_modules\glob\node_modules\inherits
33745 silly lockFile abd1689b-cache-inherits-1-0-0-package-tgz C:\Documents and Settings\jinkai\Application Data\npm-cache\inherits\1.0.0\package.tgz
33746 silly lockFile abd1689b-cache-inherits-1-0-0-package-tgz C:\Documents and Settings\jinkai\Application Data\npm-cache\inherits\1.0.0\package.tgz
33747 info preinstall [email protected]
33748 verbose from cache E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-jshint\node_modules\jshint\node_modules\cli\node_modules\glob\node_modules\inherits\package.json
33749 verbose readDependencies using package.json deps
33750 verbose from cache E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-jshint\node_modules\jshint\node_modules\cli\node_modules\glob\node_modules\inherits\package.json
33751 verbose readDependencies using package.json deps
33752 silly resolved []
33753 verbose about to build E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-jshint\node_modules\jshint\node_modules\cli\node_modules\glob\node_modules\inherits
33754 info build E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-jshint\node_modules\jshint\node_modules\cli\node_modules\glob\node_modules\inherits
33755 verbose from cache E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-jshint\node_modules\jshint\node_modules\cli\node_modules\glob\node_modules\inherits\package.json
33756 verbose linkStuff [ false,
33756 verbose linkStuff false,
33756 verbose linkStuff false,
33756 verbose linkStuff 'E:\\workspace2\\backbone\\node_modules\\grunt-contrib\\node_modules\\grunt-contrib-jshint\\node_modules\\jshint\\node_modules\\cli\\node_modules\\glob\\node_modules' ]
33757 info linkStuff [email protected]
33758 verbose linkBins [email protected]
33759 verbose linkMans [email protected]
33760 verbose rebuildBundles [email protected]
33761 info install [email protected]
33762 info postinstall [email protected]
33763 verbose read json E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-jshint\node_modules\jshint\node_modules\cli\node_modules\glob\node_modules\graceful-fs\package.json
33764 silly lockFile af029bc7-es-glob-node-modules-graceful-fs E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-jshint\node_modules\jshint\node_modules\cli\node_modules\glob\node_modules\graceful-fs
33765 silly lockFile af029bc7-es-glob-node-modules-graceful-fs E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-jshint\node_modules\jshint\node_modules\cli\node_modules\glob\node_modules\graceful-fs
33766 silly lockFile b89c3973-he-graceful-fs-1-2-0-package-tgz C:\Documents and Settings\jinkai\Application Data\npm-cache\graceful-fs\1.2.0\package.tgz
33767 silly lockFile b89c3973-he-graceful-fs-1-2-0-package-tgz C:\Documents and Settings\jinkai\Application Data\npm-cache\graceful-fs\1.2.0\package.tgz
33768 info preinstall [email protected]
33769 verbose from cache E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-jshint\node_modules\jshint\node_modules\cli\node_modules\glob\node_modules\graceful-fs\package.json
33770 verbose readDependencies using package.json deps
33771 verbose from cache E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-jshint\node_modules\jshint\node_modules\cli\node_modules\glob\node_modules\graceful-fs\package.json
33772 verbose readDependencies using package.json deps
33773 silly resolved []
33774 verbose about to build E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-jshint\node_modules\jshint\node_modules\cli\node_modules\glob\node_modules\graceful-fs
33775 info build E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-jshint\node_modules\jshint\node_modules\cli\node_modules\glob\node_modules\graceful-fs
33776 verbose from cache E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-jshint\node_modules\jshint\node_modules\cli\node_modules\glob\node_modules\graceful-fs\package.json
33777 verbose linkStuff [ false,
33777 verbose linkStuff false,
33777 verbose linkStuff false,
33777 verbose linkStuff 'E:\\workspace2\\backbone\\node_modules\\grunt-contrib\\node_modules\\grunt-contrib-jshint\\node_modules\\jshint\\node_modules\\cli\\node_modules\\glob\\node_modules' ]
33778 info linkStuff [email protected]
33779 verbose linkBins [email protected]
33780 verbose linkMans [email protected]
33781 verbose rebuildBundles [email protected]
33782 info install [email protected]
33783 info postinstall [email protected]
33784 verbose about to build E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-jshint\node_modules\jshint\node_modules\cli\node_modules\glob
33785 info build E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-jshint\node_modules\jshint\node_modules\cli\node_modules\glob
33786 verbose from cache E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-jshint\node_modules\jshint\node_modules\cli\node_modules\glob\package.json
33787 verbose linkStuff [ false,
33787 verbose linkStuff false,
33787 verbose linkStuff false,
33787 verbose linkStuff 'E:\\workspace2\\backbone\\node_modules\\grunt-contrib\\node_modules\\grunt-contrib-jshint\\node_modules\\jshint\\node_modules\\cli\\node_modules' ]
33788 info linkStuff [email protected]
33789 verbose linkBins [email protected]
33790 verbose linkMans [email protected]
33791 verbose rebuildBundles [email protected]
33792 verbose rebuildBundles [ 'graceful-fs', 'inherits' ]
33793 info install [email protected]
33794 info postinstall [email protected]
33795 verbose about to build E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-jshint\node_modules\jshint\node_modules\cli
33796 info build E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-jshint\node_modules\jshint\node_modules\cli
33797 verbose from cache E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-jshint\node_modules\jshint\node_modules\cli\package.json
33798 verbose linkStuff [ false,
33798 verbose linkStuff false,
33798 verbose linkStuff false,
33798 verbose linkStuff 'E:\\workspace2\\backbone\\node_modules\\grunt-contrib\\node_modules\\grunt-contrib-jshint\\node_modules\\jshint\\node_modules' ]
33799 info linkStuff [email protected]
33800 verbose linkBins [email protected]
33801 verbose linkMans [email protected]
33802 verbose rebuildBundles [email protected]
33803 verbose rebuildBundles [ 'glob' ]
33804 info install [email protected]
33805 info postinstall [email protected]
33806 verbose about to build E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-jshint\node_modules\jshint
33807 info build E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-jshint\node_modules\jshint
33808 verbose from cache E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-jshint\node_modules\jshint\package.json
33809 verbose linkStuff [ false,
33809 verbose linkStuff false,
33809 verbose linkStuff false,
33809 verbose linkStuff 'E:\\workspace2\\backbone\\node_modules\\grunt-contrib\\node_modules\\grunt-contrib-jshint\\node_modules' ]
33810 info linkStuff [email protected]
33811 verbose linkBins [email protected]
33812 verbose link bins [ { jshint: './bin/jshint' },
33812 verbose link bins 'E:\\workspace2\\backbone\\node_modules\\grunt-contrib\\node_modules\\grunt-contrib-jshint\\node_modules\\.bin',
33812 verbose link bins false ]
33813 verbose linkMans [email protected]
33814 verbose rebuildBundles [email protected]
33815 info E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-jshint\node_modules\jshint unbuild
33816 verbose from cache E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-jshint\node_modules\jshint\package.json
33817 info preuninstall [email protected]
33818 verbose rebuildBundles [ '.bin',
33818 verbose rebuildBundles 'cli',
33818 verbose rebuildBundles 'esprima',
33818 verbose rebuildBundles 'minimatch',
33818 verbose rebuildBundles 'peakle',
33818 verbose rebuildBundles 'shelljs',
33818 verbose rebuildBundles 'underscore' ]
33819 info uninstall [email protected]
33820 verbose false,E:\workspace2\backbone\node_modules,E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-jshint\node_modules unbuild [email protected]
33821 verbose E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-jshint\node_modules\.bin,[object Object] binRoot
33822 info postuninstall [email protected]
33823 verbose about to build E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-jshint
33824 info E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-jshint unbuild
33825 verbose from cache E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-jshint\package.json
33826 info preuninstall [email protected]
33827 info uninstall [email protected]
33828 verbose false,E:\workspace2\backbone\node_modules,E:\workspace2\backbone\node_modules\grunt-contrib\node_modules unbuild [email protected]
33829 info postuninstall [email protected]
33830 info postinstall [email protected]
33831 verbose about to build E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-qunit\node_modules\grunt-lib-phantomjs
33832 info build E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-qunit\node_modules\grunt-lib-phantomjs
33833 verbose from cache E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-qunit\node_modules\grunt-lib-phantomjs\package.json
33834 verbose linkStuff [ false,
33834 verbose linkStuff false,
33834 verbose linkStuff false,
33834 verbose linkStuff 'E:\\workspace2\\backbone\\node_modules\\grunt-contrib\\node_modules\\grunt-contrib-qunit\\node_modules' ]
33835 info linkStuff [email protected]
33836 verbose linkBins [email protected]
33837 verbose linkMans [email protected]
33838 verbose rebuildBundles [email protected]
33839 verbose rebuildBundles [ 'phantomjs' ]
33840 info install [email protected]
33841 info postinstall [email protected]
33842 verbose about to build E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-qunit
33843 info build E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-qunit
33844 verbose from cache E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-qunit\package.json
33845 verbose linkStuff [ false,
33845 verbose linkStuff false,
33845 verbose linkStuff false,
33845 verbose linkStuff 'E:\\workspace2\\backbone\\node_modules\\grunt-contrib\\node_modules' ]
33846 info linkStuff [email protected]
33847 verbose linkBins [email protected]
33848 verbose linkMans [email protected]
33849 verbose rebuildBundles [email protected]
33850 verbose rebuildBundles [ 'grunt-lib-phantomjs' ]
33851 info install [email protected]
33852 info postinstall [email protected]
33853 verbose read json E:\workspace2\backbone\node_modules\grunt-contrib\package.json
33854 verbose from cache E:\workspace2\backbone\node_modules\grunt-contrib\node_modules\grunt-contrib-qunit\package.json
33855 verbose cache add [ '[email protected]~0.4.0', null ]
33856 verbose cache add name=undefined spec="[email protected]~0.4.0" args=["[email protected]~0.4.0",null]
33857 verbose parsed url { protocol: null,
33857 verbose parsed url slashes: null,
33857 verbose parsed url auth: null,
33857 verbose parsed url host: null,
33857 verbose parsed url port: null,
33857 verbose parsed url hostname: null,
33857 verbose parsed url hash: null,
33857 verbose parsed url search: null,
33857 verbose parsed url query: null,
33857 verbose parsed url pathname: '[email protected]~0.4.0',
33857 verbose parsed url path: '[email protected]~0.4.0',
33857 verbose parsed url href: '[email protected]~0.4.0' }
33858 verbose cache add name="grunt" spec="~0.4.0" args=["grunt","~0.4.0"]
33859 verbose parsed url { protocol: null,
33859 verbose parsed url slashes: null,
33859 verbose parsed url auth: null,
33859 verbose parsed url host: null,
33859 verbose parsed url port: null,
33859 verbose parsed url hostname: null,
33859 verbose parsed url hash: null,
33859 verbose parsed url search: null,
33859 verbose parsed url query: null,
33859 verbose parsed url pathname: '~0.4.0',
33859 verbose parsed url path: '~0.4.0',
33859 verbose parsed url href: '~0.4.0' }
33860 verbose addNamed [ 'grunt', '~0.4.0' ]
33861 verbose addNamed [ null, '>=0.4.0- <0.5.0-' ]
33862 silly lockFile cba964e3-grunt-0-4-0 [email protected]~0.4.0
33863 verbose lock [email protected]~0.4.0 C:\Documents and Settings\jinkai\Application Data\npm-cache\cba964e3-grunt-0-4-0.lock
33864 silly addNameRange { name: 'grunt', range: '>=0.4.0- <0.5.0-', hasData: false }
33865 verbose url raw grunt
33866 verbose url resolving [ 'https://registry.npmjs.org/', './grunt' ]
33867 verbose url resolved https://registry.npmjs.org/grunt
33868 info trying registry request attempt 1 at 09:34:05
33869 verbose etag "9W6PIJKXOXJNJCW9NGQ0Z66JS"
33870 http GET https://registry.npmjs.org/grunt
33871 error [email protected] install: `node install.js`
33871 error `cmd "/c" "node install.js"` failed with 8
33872 error Failed at the [email protected] install script.
33872 error This is most likely a problem with the phantomjs package,
33872 error not with npm itself.
33872 error Tell the author that this fails on your system:
33872 error node install.js
33872 error You can get their info via:
33872 error npm owner ls phantomjs
33872 error There is likely additional logging output above.
33873 error System Windows_NT 5.1.2600
33874 error command "D:\\nodejs\\\\node.exe" "D:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "grunt-contrib"
33875 error cwd E:\workspace2\backbone
33876 error node -v v0.10.1
33877 error npm -v 1.2.15
33878 error code ELIFECYCLE
33879 verbose exit [ 1, true ]
誰能告訴我如何解決問題?
我嘗試運行npm -g並首先安裝[email protected],但又失敗 – kingnight 2013-03-26 10:04:16
您是否以管理員身份運行它? – 2013-03-26 10:07:15
npm -g設置爲全局參數,如何以管理員身份運行它@Golo Roden – kingnight 2013-03-26 10:17:01