Я запускаю Ubuntu 14.x и клиентскую CMS в Vagrant (платформа Laravel, если это необходимо). Пожалуйста, извините за широту охвата, так как работа с пакетами и зависимостями для меня нова, и моя голова плавает, и мне нужно в основном погрузиться в концепции, чтобы я мог их понять. Тем не менее, из числа сообщений, которые я вижу, похоже, что другие разработчики сталкиваются с теми же чалотами.Предупреждение о пряже: [email protected]: Нет поля лицензии и типа лицензии плюс конфликт зависимости
README.md говорит, чтобы выполнить yarn
, чтобы построить все после того, как я клонировал репо. Вот команды, которые привели к этой точке:
which nodejs # /usr/bin/nodejs
nodejs -v # v4.7.3
npm install -g yarn #this installed yarn v0.19.1
yarn
Я получаю следующую последовательность, каждый раз, когда я пытаюсь и запустить yarn
, я получаю следующие ошибки. Интересно, что на 2-й в 4 раза я пробовал ссылаться на другую символическую ссылку, так что извините за legth этого:
[email protected]:/var/www/mycms# yarn
yarn install v0.19.1
warning [email protected]: No license field
warning [email protected]: "dependencies" has dependency "babel-polyfill" with range "^6.16.0" that collides with a dependency in "devDependencies" of the same name with version "^6.7.4"
warning [email protected]: "dependencies" has dependency "babel-preset-es2015" with range "^6.18.0" that collides with a dependency in "devDependencies" of the same name with version "^6.6.0"
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
error An unexpected error occurred: "EPROTO: protocol error, symlink '../../../babylon/bin/babylon.js' -> '/var/www/mycms/node_modules/babel-core/node_modules/.bin/babylon'".
info If you think this is a bug, please open a bug report with the information provided in "/var/www/mycms/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
[email protected]:/var/www/mycms# yarn
yarn install v0.19.1
warning [email protected]: No license field
warning [email protected]: "dependencies" has dependency "babel-polyfill" with range "^6.16.0" that collides with a dependency in "devDependencies" of the same name with version "^6.7.4"
warning [email protected]: "dependencies" has dependency "babel-preset-es2015" with range "^6.18.0" that collides with a dependency in "devDependencies" of the same name with version "^6.6.0"
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
error An unexpected error occurred: "EPROTO: protocol error, symlink '../../../normalize-package-data/node_modules/semver/bin/semver' -> '/var/www/mycms/node_modules/accord/node_modules/.bin/semver'".
info If you think this is a bug, please open a bug report with the information provided in "/var/www/mycms/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
[email protected]:/var/www/mycms# yarn
yarn install v0.19.1
warning [email protected]: No license field
warning [email protected]: "dependencies" has dependency "babel-polyfill" with range "^6.16.0" that collides with a dependency in "devDependencies" of the same name with version "^6.7.4"
warning [email protected]: "dependencies" has dependency "babel-preset-es2015" with range "^6.18.0" that collides with a dependency in "devDependencies" of the same name with version "^6.6.0"
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
error An unexpected error occurred: "EPROTO: protocol error, symlink '../../../babylon/bin/babylon.js' -> '/var/www/mycms/node_modules/babel-core/node_modules/.bin/babylon'".
info If you think this is a bug, please open a bug report with the information provided in "/var/www/mycms/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
[email protected]:/var/www/mycms# yarn #
yarn install v0.19.1
warning [email protected]: No license field
warning [email protected]: "dependencies" has dependency "babel-polyfill" with range "^6.16.0" that collides with a dependency in "devDependencies" of the same name with version "^6.7.4"
warning [email protected]: "dependencies" has dependency "babel-preset-es2015" with range "^6.18.0" that collides with a dependency in "devDependencies" of the same name with version "^6.6.0"
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
error An unexpected error occurred: "EPROTO: protocol error, symlink '../../../babylon/bin/babylon.js' -> '/var/www/mycms/node_modules/babel-core/node_modules/.bin/babylon'".
info If you think this is a bug, please open a bug report with the information provided in "/var/www/mycms/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
У меня есть два вопроса, которые я надеюсь, являются кратким:
- Как я избавиться от
[email protected]: No license field
(и это критически важно)? - Как устранить столкновение между
dependencies
иdevDependencies
? Я работаю в среде разработчиков, но, очевидно, не хочу касаться файлаyarn.lock
(?). - Если бы я использовал большую из двух версий для
dependencies
иdevDependencies
(при условии, что это сработало в коде), предотвратит ли это сообщение об ошибке?