Open c4milo opened 13 years ago
thanks for report, will investigate.
a more useful output
camilo@localhost:~/Dropbox/Development/foo/bar> npm install linter argsparser@0.0.5 ./node_modules/linter/node_modules/argsparser argsparser@0.0.5 ./node_modules/linter/node_modules/sharedjs/node_modules/argsparser uglify-js@1.0.2 ./node_modules/linter/node_modules/sharedjs/node_modules/uglify-js sharedjs@0.0.2 ./node_modules/linter/node_modules/sharedjs
linter@0.0.7 install /Users/camilo/Dropbox/Development/foo/bar/node_modules/linter make install
cd ./deps/closure-linter && python ./setup.py install running install running bdist_egg running egg_info creating closure_linter.egg-info writing requirements to closure_linter.egg-info/requires.txt writing closure_linter.egg-info/PKG-INFO writing top-level names to closure_linter.egg-info/top_level.txt writing dependency_links to closure_linter.egg-info/dependency_links.txt writing entry points to closure_linter.egg-info/entry_points.txt writing manifest file 'closure_linter.egg-info/SOURCES.txt' reading manifest file 'closure_linter.egg-info/SOURCES.txt' writing manifest file 'closure_linter.egg-info/SOURCES.txt' installing library code to build/bdist.macosx-10.6-universal/egg running install_lib running build_py creating build creating build/lib creating build/lib/closure_linter copying closure_linter/init.py -> build/lib/closure_linter copying closure_linter/checker.py -> build/lib/closure_linter copying closure_linter/checkerbase.py -> build/lib/closure_linter copying closure_linter/ecmalintrules.py -> build/lib/closure_linter copying closure_linter/ecmametadatapass.py -> build/lib/closure_linter copying closure_linter/error_fixer.py -> build/lib/closure_linter copying closure_linter/errorrules.py -> build/lib/closure_linter copying closure_linter/errors.py -> build/lib/closure_linter copying closure_linter/fixjsstyle.py -> build/lib/closure_linter copying closure_linter/fixjsstyle_test.py -> build/lib/closure_linter copying closure_linter/full_test.py -> build/lib/closure_linter copying closure_linter/gjslint.py -> build/lib/closure_linter copying closure_linter/indentation.py -> build/lib/closure_linter copying closure_linter/javascriptlintrules.py -> build/lib/closure_linter copying closure_linter/javascriptstatetracker.py -> build/lib/closure_linter copying closure_linter/javascriptstatetracker_test.py -> build/lib/closure_linter copying closure_linter/javascripttokenizer.py -> build/lib/closure_linter copying closure_linter/javascripttokens.py -> build/lib/closure_linter copying closure_linter/statetracker.py -> build/lib/closure_linter copying closure_linter/tokenutil.py -> build/lib/closure_linter creating build/lib/closure_linter/common copying closure_linter/common/init.py -> build/lib/closure_linter/common copying closure_linter/common/error.py -> build/lib/closure_linter/common copying closure_linter/common/erroraccumulator.py -> build/lib/closure_linter/common copying closure_linter/common/errorhandler.py -> build/lib/closure_linter/common copying closure_linter/common/errorprinter.py -> build/lib/closure_linter/common copying closure_linter/common/filetestcase.py -> build/lib/closure_linter/common copying closure_linter/common/htmlutil.py -> build/lib/closure_linter/common copying closure_linter/common/lintrunner.py -> build/lib/closure_linter/common copying closure_linter/common/matcher.py -> build/lib/closure_linter/common copying closure_linter/common/position.py -> build/lib/closure_linter/common copying closure_linter/common/simplefileflags.py -> build/lib/closure_linter/common copying closure_linter/common/tokenizer.py -> build/lib/closure_linter/common copying closure_linter/common/tokens.py -> build/lib/closure_linter/common creating build/bdist.macosx-10.6-universal creating build/bdist.macosx-10.6-universal/egg creating build/bdist.macosx-10.6-universal/egg/closure_linter copying build/lib/closure_linter/init.py -> build/bdist.macosx-10.6-universal/egg/closure_linter copying build/lib/closure_linter/checker.py -> build/bdist.macosx-10.6-universal/egg/closure_linter copying build/lib/closure_linter/checkerbase.py -> build/bdist.macosx-10.6-universal/egg/closure_linter creating build/bdist.macosx-10.6-universal/egg/closure_linter/common copying build/lib/closure_linter/common/init.py -> build/bdist.macosx-10.6-universal/egg/closure_linter/common copying build/lib/closure_linter/common/error.py -> build/bdist.macosx-10.6-universal/egg/closure_linter/common copying build/lib/closure_linter/common/erroraccumulator.py -> build/bdist.macosx-10.6-universal/egg/closure_linter/common copying build/lib/closure_linter/common/errorhandler.py -> build/bdist.macosx-10.6-universal/egg/closure_linter/common copying build/lib/closure_linter/common/errorprinter.py -> build/bdist.macosx-10.6-universal/egg/closure_linter/common copying build/lib/closure_linter/common/filetestcase.py -> build/bdist.macosx-10.6-universal/egg/closure_linter/common copying build/lib/closure_linter/common/htmlutil.py -> build/bdist.macosx-10.6-universal/egg/closure_linter/common copying build/lib/closure_linter/common/lintrunner.py -> build/bdist.macosx-10.6-universal/egg/closure_linter/common copying build/lib/closure_linter/common/matcher.py -> build/bdist.macosx-10.6-universal/egg/closure_linter/common copying build/lib/closure_linter/common/position.py -> build/bdist.macosx-10.6-universal/egg/closure_linter/common copying build/lib/closure_linter/common/simplefileflags.py -> build/bdist.macosx-10.6-universal/egg/closure_linter/common copying build/lib/closure_linter/common/tokenizer.py -> build/bdist.macosx-10.6-universal/egg/closure_linter/common copying build/lib/closure_linter/common/tokens.py -> build/bdist.macosx-10.6-universal/egg/closure_linter/common copying build/lib/closure_linter/ecmalintrules.py -> build/bdist.macosx-10.6-universal/egg/closure_linter copying build/lib/closure_linter/ecmametadatapass.py -> build/bdist.macosx-10.6-universal/egg/closure_linter copying build/lib/closure_linter/error_fixer.py -> build/bdist.macosx-10.6-universal/egg/closure_linter copying build/lib/closure_linter/errorrules.py -> build/bdist.macosx-10.6-universal/egg/closure_linter copying build/lib/closure_linter/errors.py -> build/bdist.macosx-10.6-universal/egg/closure_linter copying build/lib/closure_linter/fixjsstyle.py -> build/bdist.macosx-10.6-universal/egg/closure_linter copying build/lib/closure_linter/fixjsstyle_test.py -> build/bdist.macosx-10.6-universal/egg/closure_linter copying build/lib/closure_linter/full_test.py -> build/bdist.macosx-10.6-universal/egg/closure_linter copying build/lib/closure_linter/gjslint.py -> build/bdist.macosx-10.6-universal/egg/closure_linter copying build/lib/closure_linter/indentation.py -> build/bdist.macosx-10.6-universal/egg/closure_linter copying build/lib/closure_linter/javascriptlintrules.py -> build/bdist.macosx-10.6-universal/egg/closure_linter copying build/lib/closure_linter/javascriptstatetracker.py -> build/bdist.macosx-10.6-universal/egg/closure_linter copying build/lib/closure_linter/javascriptstatetracker_test.py -> build/bdist.macosx-10.6-universal/egg/closure_linter copying build/lib/closure_linter/javascripttokenizer.py -> build/bdist.macosx-10.6-universal/egg/closure_linter copying build/lib/closure_linter/javascripttokens.py -> build/bdist.macosx-10.6-universal/egg/closure_linter copying build/lib/closure_linter/statetracker.py -> build/bdist.macosx-10.6-universal/egg/closure_linter copying build/lib/closure_linter/tokenutil.py -> build/bdist.macosx-10.6-universal/egg/closure_linter byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/init.py to init.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/checker.py to checker.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/checkerbase.py to checkerbase.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/common/init.py to init.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/common/error.py to error.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/common/erroraccumulator.py to erroraccumulator.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/common/errorhandler.py to errorhandler.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/common/errorprinter.py to errorprinter.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/common/filetestcase.py to filetestcase.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/common/htmlutil.py to htmlutil.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/common/lintrunner.py to lintrunner.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/common/matcher.py to matcher.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/common/position.py to position.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/common/simplefileflags.py to simplefileflags.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/common/tokenizer.py to tokenizer.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/common/tokens.py to tokens.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/ecmalintrules.py to ecmalintrules.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/ecmametadatapass.py to ecmametadatapass.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/error_fixer.py to error_fixer.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/errorrules.py to errorrules.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/errors.py to errors.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/fixjsstyle.py to fixjsstyle.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/fixjsstyle_test.py to fixjsstyle_test.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/full_test.py to full_test.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/gjslint.py to gjslint.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/indentation.py to indentation.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/javascriptlintrules.py to javascriptlintrules.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/javascriptstatetracker.py to javascriptstatetracker.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/javascriptstatetracker_test.py to javascriptstatetracker_test.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/javascripttokenizer.py to javascripttokenizer.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/javascripttokens.py to javascripttokens.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/statetracker.py to statetracker.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/closure_linter/tokenutil.py to tokenutil.pyc creating build/bdist.macosx-10.6-universal/egg/EGG-INFO copying closure_linter.egg-info/PKG-INFO -> build/bdist.macosx-10.6-universal/egg/EGG-INFO copying closure_linter.egg-info/SOURCES.txt -> build/bdist.macosx-10.6-universal/egg/EGG-INFO copying closure_linter.egg-info/dependency_links.txt -> build/bdist.macosx-10.6-universal/egg/EGG-INFO copying closure_linter.egg-info/entry_points.txt -> build/bdist.macosx-10.6-universal/egg/EGG-INFO copying closure_linter.egg-info/requires.txt -> build/bdist.macosx-10.6-universal/egg/EGG-INFO copying closure_linter.egg-info/top_level.txt -> build/bdist.macosx-10.6-universal/egg/EGG-INFO zip_safe flag not set; analyzing archive contents... creating dist creating 'dist/closure_linter-2.2.7-py2.6.egg' and adding 'build/bdist.macosx-10.6-universal/egg' to it removing 'build/bdist.macosx-10.6-universal/egg' (and everything under it) Processing closure_linter-2.2.7-py2.6.egg Removing /Library/Python/2.6/site-packages/closure_linter-2.2.7-py2.6.egg Copying closure_linter-2.2.7-py2.6.egg to /Library/Python/2.6/site-packages closure-linter 2.2.7 is already the active version in easy-install.pth Installing fixjsstyle script to /usr/local/bin Installing gjslint script to /usr/local/bin
Installed /Library/Python/2.6/site-packages/closure_linter-2.2.7-py2.6.egg
Processing dependencies for closure-linter==2.2.7
Traceback (most recent call last):
File "./setup.py", line 35, in make install
npm ERR! error installing linter@0.0.7 sh "-c" "make install"
failed with 2
npm ERR! error installing linter@0.0.7 at ChildProcess.make install
npm ERR! sh "-c" "make install"
failed with 2
npm ERR!
npm ERR! Failed at the linter@0.0.7 install script.
npm ERR! This is most likely a problem with the linter package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! make install
npm ERR! You can get their info via:
npm ERR! npm owner ls linter
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Darwin 10.7.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "linter"
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/camilo/Dropbox/Development/foo/bar/npm-debug.log
npm not ok
btw, sudo easy_install http://closure-linter.googlecode.com/files/closure_linter-latest.tar.gz worked fine for me.
There is no need to install closure linter globally. Just use it from the deps directory. At least it works for me. Doing npm install -f linter (so that npm doesn't remove the package after failing) works just fine
npm install linter argsparser@0.0.5 ./node_modules/linter/node_modules/argsparser uglify-js@1.0.2 ./node_modules/linter/node_modules/sharedjs/node_modules/uglify-js sharedjs@0.0.2 ./node_modules/linter/node_modules/sharedjs
cd ./deps/closure-linter && python ./setup.py install running install install_dir /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/ error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the installation directory:
The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was:
Perhaps your account does not have write access to this directory? If the installation directory is a system-owned directory, you may need to sign in as the administrator or "root" account. If you do not have administrative access to this machine, you may wish to choose a different installation directory, preferably one that is listed in your PYTHONPATH environment variable.
For information on other options, you may wish to consult the documentation at:
http://packages.python.org/distribute/easy_install.html
Please make the appropriate changes for your system and try again.
make: *\ [install] Error 1 npm ERR! error installing linter@0.0.7 Error: linter@0.0.7 install: (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing linter@0.0.7 at ChildProcess.emit (events.js:67:17)
npm ERR! error installing linter@0.0.7 at ChildProcess.onexit (child_process.js:192:12)
npm ERR! linter@0.0.7 install:
make install
npm ERR! error installing linter@0.0.7sh "-c" "make install"
failed with 2 npm ERR! error installing linter@0.0.7 at ChildProcess.make install
npm ERR!sh "-c" "make install"
failed with 2 npm ERR! npm ERR! Failed at the linter@0.0.7 install script. npm ERR! This is most likely a problem with the linter package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! make install npm ERR! You can get their info via: npm ERR! npm owner ls linter npm ERR! There is likely additional logging output above. npm ERR! npm ERR! System Darwin 10.7.0 npm ERR! command "node" "/usr/local/bin/npm" "install" "linter" npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /Users/camilo/Dropbox/Development/foo/bar/npm-debug.log npm not ok