/var/www/html$ apt install nodejs E: Не удалось открыть файл блокировки /var/lib/dpkg/lock-frontend - open (13: Отказано в доступе) E: Невозможно получить блокировку внешнего интерфейса dpkg (/var/lib/dpkg/lock-frontend); у вас есть права суперпользователя? --- Добавлено --- Код (Text): npm run watch > @ watch /var/www/html > cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js module.js:549 throw err; ^ Error: Cannot find module 'nice-try' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at Object.<anonymous> (/var/www/html/node_modules/cross-spawn/lib/parse.js:4:17) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) npm ERR! Linux 5.0.0-29-generic npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "watch" npm ERR! node v8.10.0 npm ERR! npm v3.5.2 npm ERR! code ELIFECYCLE npm ERR! @ watch: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @ watch script 'cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /var/www/html/npm-debug.log
Код (Text): sudo apt install nodejs Чтение списков пакетов… Готово Построение дерева зависимостей Чтение информации о состоянии… Готово Уже установлен пакет nodejs самой новой версии (8.10.0~dfsg-2ubuntu0.4). Следующие пакеты устанавливались автоматически и больше не требуются: galera-3 libconfig-inifiles-perl libdbi-perl libjemalloc1 libreadline5 libterm-readkey-perl socat Для их удаления используйте «sudo apt autoremove». Обновлено 0 пакетов, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 240 пакетов не обновлено. --- Добавлено --- Код (Text): /var/www/html$ npm i > pngquant-bin@4.0.0 postinstall /var/www/html/node_modules/pngquant-bin > node lib/install.js ⚠ The `/var/www/html/node_modules/pngquant-bin/vendor/pngquant` binary doesn't seem to work correctly ⚠ pngquant pre-build test failed ℹ compiling from source ✔ pngquant pre-build test passed successfully ✖ Error: pngquant failed to build, make sure that libpng-dev is installed at Promise.all.then.arr (/var/www/html/node_modules/pngquant-bin/node_modules/bin-build/node_modules/execa/index.js:231:11) at <anonymous> at process._tickCallback (internal/process/next_tick.js:188:7) /var/www/html └── (empty) npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.9 npm WARN optional Skipping failed optional dependency /watchpack/chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.9 npm WARN optional Skipping failed optional dependency /webpack-dev-server/chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.9 npm WARN ajv-keywords@3.4.1 requires a peer of ajv@^6.9.1 but none was installed. npm ERR! Linux 5.0.0-29-generic npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "i" npm ERR! node v8.10.0 npm ERR! npm v3.5.2 npm ERR! code ELIFECYCLE npm ERR! pngquant-bin@4.0.0 postinstall: `node lib/install.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the pngquant-bin@4.0.0 postinstall script 'node lib/install.js'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the pngquant-bin package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node lib/install.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs pngquant-bin npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls pngquant-bin npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /var/www/html/npm-debug.log npm ERR! code 1 что означает обновить проект до актуальной версии? --- Добавлено --- Код (Text): npm i npm WARN deprecated extract-text-webpack-plugin@3.0.2: Deprecated. Please use https://github.com/webpack-contrib/mini-css-extract-plugin npm WARN deprecated browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools. npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools. npm WARN deprecated flatten@1.0.2: I wrote this module a very long time ago; you should use something else. loadDep:ware → request ▄ ╢██████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5 npm WARN prefer global node-gyp@3.8.0 should be installed with -g > node-sass@4.12.0 install /var/www/html/node_modules/node-sass > node scripts/install.js Downloading binary from https://github.com/sass/node-sass/releases/download/v4.12.0/linux-x64-57_binding.node Download complete ] - : Binary saved to /var/www/html/node_modules/node-sass/vendor/linux-x64-57/binding.node Caching binary to /home/php/.npm/node-sass/4.12.0/linux-x64-57_binding.node > core-js@2.6.9 postinstall /var/www/html/node_modules/core-js > node scripts/postinstall || echo "ignore" > uglifyjs-webpack-plugin@0.4.6 postinstall /var/www/html/node_modules/webpack/node_modules/uglifyjs-webpack-plugin > node lib/post_install.js > node-sass@4.12.0 postinstall /var/www/html/node_modules/node-sass > node scripts/build.js Binary found at /var/www/html/node_modules/node-sass/vendor/linux-x64-57/binding.node Testing binary Binary is fine > pngquant-bin@4.0.0 postinstall /var/www/html/node_modules/pngquant-bin > node lib/install.js ⚠ The `/var/www/html/node_modules/pngquant-bin/vendor/pngquant` binary doesn't seem to work correctly ⚠ pngquant pre-build test failed ℹ compiling from source ✔ pngquant pre-build test passed successfully ✖ Error: pngquant failed to build, make sure that libpng-dev is installed at Promise.all.then.arr (/var/www/html/node_modules/pngquant-bin/node_modules/bin-build/node_modules/execa/index.js:231:11) at <anonymous> at process._tickCallback (internal/process/next_tick.js:188:7) /var/www/html ├── autoprefixer@7.2.6 extraneous ├─┬ axios@0.16.2 │ ├─┬ follow-redirects@1.9.0 │ │ └─┬ debug@3.2.6 │ │ └── ms@2.1.2 │ └── is-buffer@1.1.6 ├── babel-loader@7.1.5 extraneous ├── babel-plugin-transform-object-rest-spread@6.26.0 extraneous ├── babel-plugin-transform-runtime@6.23.0 extraneous ├── babel-preset-env@1.7.0 extraneous ├── bootstrap-sass@3.4.1 ├── chokidar@1.7.0 extraneous ├── concatenate@0.0.2 extraneous ├─┬ cross-env@5.2.1 │ └─┬ cross-spawn@6.0.5 │ ├── semver@5.7.1 │ └─┬ which@1.3.1 │ └── isexe@2.0.0 ├── css-loader@0.28.11 extraneous ├── dotenv@4.0.0 extraneous ├── dotenv-expand@4.2.0 extraneous ├── extract-text-webpack-plugin@3.0.2 extraneous ├── file-loader@0.11.2 extraneous ├── friendly-errors-webpack-plugin@1.7.0 extraneous ├── fs-extra@3.0.1 extraneous ├── html-loader@0.4.5 extraneous ├── imagemin@5.3.1 extraneous ├── imagemin-gifsicle@5.2.0 extraneous ├── imagemin-mozjpeg@7.0.0 extraneous ├── imagemin-optipng@5.2.1 extraneous ├── imagemin-svgo@6.0.0 extraneous ├── jquery@3.4.1 ├── lodash@4.17.15 ├── md5@2.2.1 extraneous ├── node-sass@4.12.0 extraneous ├── postcss-loader@2.1.6 extraneous ├── resolve-url-loader@2.3.2 extraneous ├── sass-loader@6.0.7 extraneous ├── style-loader@0.18.2 extraneous ├── uglifyjs-webpack-plugin@1.3.0 extraneous ├── vue@2.6.10 ├── vue-loader@13.7.3 extraneous ├── vue-template-compiler@2.6.10 extraneous ├── webpack@3.12.0 extraneous ├── webpack-chunk-hash@0.4.0 extraneous ├── webpack-dev-server@2.11.5 extraneous ├── webpack-merge@4.2.2 extraneous └── webpack-notifier@1.8.0 extraneous npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.9 npm WARN optional Skipping failed optional dependency /watchpack/chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.9 npm WARN optional Skipping failed optional dependency /webpack-dev-server/chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.9 npm WARN ajv-keywords@3.4.1 requires a peer of ajv@^6.9.1 but none was installed. npm ERR! Linux 5.0.0-29-generic npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "i" npm ERR! node v8.10.0 npm ERR! npm v3.5.2 npm ERR! code ELIFECYCLE npm ERR! pngquant-bin@4.0.0 postinstall: `node lib/install.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the pngquant-bin@4.0.0 postinstall script 'node lib/install.js'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the pngquant-bin package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node lib/install.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs pngquant-bin npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls pngquant-bin npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /var/www/html/npm-debug.log
Убунта, тебе банально нужно научиться настраивать среду разработки - т.е. тупо LAMP поднимать должным образом. Например: https://www.digitalocean.com/community/tutorials/linux-apache-mysql-php-lamp-ubuntu-18-04-ru И у меня для тебя очень хорошие новости: разобраться в этом нужно всего ОДИН раз )) Просто научись один раз нормально устанавливать LAMP с виртуальными хостами, и все у тебя дальше будет хорошо в жизни (пока ты не женишься )
я это на днях много раз делал знаю наизусть как хосты настраивать под апач. понял ошибки установки и теперь я спец в этом. --- Добавлено --- так вот нужно найти менторшу и вот может что-то получится)
@romach он ведь твои команды буквально повторяет. не исправляя ни буквы --- Добавлено --- это было жестоко