Я недавно конвертирую в Mac из Windows и в настоящее время просто пытаюсь настроить мои инструменты.Ошибка MAC npm с ENOENT
Сначала я установил узел с помощью homebrew, который давал мне ошибки (то же, что и у меня). Я позже удалил узел с помощью homebrew и установил с помощью pkg с веб-узла узла.
Я могу получить доступ к узлу в командной строке и npm. Проблема заключается в том, когда я пытаюсь установить модули проекта локально я получаю что-то вроде:
npm install grunt-contrib
Error extracting archive { [Error: ENOENT, open '/Users/davidmckeown/dev/adt-com/node_modules/grunt-contrib/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/tmp/phantomjs-1.7.0-macosx.zip']
errno: 34,
code: 'ENOENT',
path: '/Users/davidmckeown/dev/adt-com/node_modules/grunt-contrib/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/tmp/phantomjs-1.7.0-macosx.zip' }
Другое сообщение чуть выше, который содержит:
npm ERR! [email protected] install: `node install.js`
npm ERR! `sh "-c" "node install.js"` failed with 8
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the phantomjs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install.js
npm ERR! You can get their info via:
npm ERR! npm owner ls phantomjs
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 12.2.1
npm ERR! command "node" "/usr/local/bin/npm" "install" "grunt-contrib"
npm ERR! cwd /Users/davidmckeown/dev/adt-com
npm ERR! node -v v0.10.0
npm ERR! npm -v 1.2.14
npm ERR! code ELIFECYCLE
Любая помощь выяснить, что является вызывающие проблемы здесь были бы фантастическими. Это происходит и с другими модулями, из того, что я могу сказать.
Похоже, это может быть проблемой кэш НПМ, попробуйте 'НПМ кэш clean' – generalhenry
@generalhenry, к сожалению, нет, пробовал и sudo'ing установка npm, но без радости. – David
Вы проверили, существует ли zip-файл в месте, где npm пытается его распаковать? – travis