За последние 24 часа нас посетили 22830 программистов и 1273 робота. Сейчас ищет 741 программист ...

нужна помощь по ларавел чтоб заработал npm

Тема в разделе "Сделайте за меня", создана пользователем ubunta2, 29 сен 2019.

  1. ubunta2

    ubunta2 Зэк
    [ БАН ]

    С нами с:
    27 июн 2017
    Сообщения:
    947
    Симпатии:
    28
    нужна помощь по ларавел чтоб заработал npm
    по скайпу или тимвиверу
     
  2. romach

    romach Старожил

    С нами с:
    26 окт 2013
    Сообщения:
    2.904
    Симпатии:
    719
    apt install nodejs
    cd /project
    npm i
    npm run watch / npm run prod
     
  3. ubunta2

    ubunta2 Зэк
    [ БАН ]

    С нами с:
    27 июн 2017
    Сообщения:
    947
    Симпатии:
    28
    /var/www/html$ apt install nodejs
    E: Не удалось открыть файл блокировки /var/lib/dpkg/lock-frontend - open (13: Отказано в доступе)
    E: Невозможно получить блокировку внешнего интерфейса dpkg (/var/lib/dpkg/lock-frontend); у вас есть права суперпользователя?
    --- Добавлено ---
    Код (Text):
    1. npm run watch
    2.  
    3. > @ watch /var/www/html
    4. > cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
    5.  
    6. module.js:549
    7.     throw err;
    8.     ^
    9.  
    10. Error: Cannot find module 'nice-try'
    11.     at Function.Module._resolveFilename (module.js:547:15)
    12.     at Function.Module._load (module.js:474:25)
    13.     at Module.require (module.js:596:17)
    14.     at require (internal/module.js:11:18)
    15.     at Object.<anonymous> (/var/www/html/node_modules/cross-spawn/lib/parse.js:4:17)
    16.     at Module._compile (module.js:652:30)
    17.     at Object.Module._extensions..js (module.js:663:10)
    18.     at Module.load (module.js:565:32)
    19.     at tryModuleLoad (module.js:505:12)
    20.     at Function.Module._load (module.js:497:3)
    21.  
    22. npm ERR! Linux 5.0.0-29-generic
    23. npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "watch"
    24. npm ERR! node v8.10.0
    25. npm ERR! npm  v3.5.2
    26. npm ERR! code ELIFECYCLE
    27. 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`
    28. npm ERR! Exit status 1
    29. npm ERR!
    30. 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'.
    31. npm ERR! Make sure you have the latest version of node.js and npm installed.
    32. npm ERR! If you do, this is most likely a problem with the  package,
    33. npm ERR! not with npm itself.
    34. npm ERR! Tell the author that this fails on your system:
    35. 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
    36. npm ERR! You can get information on how to open an issue for this project with:
    37. npm ERR!     npm bugs
    38. npm ERR! Or if that isn't available, you can get their info via:
    39. npm ERR!     npm owner ls
    40. npm ERR! There is likely additional logging output above.
    41.  
    42. npm ERR! Please include the following file with any support request:
    43. npm ERR!     /var/www/html/npm-debug.log
     
  4. romach

    romach Старожил

    С нами с:
    26 окт 2013
    Сообщения:
    2.904
    Симпатии:
    719
    man sudo
    --- Добавлено ---
    и обнови проект до актуальной версии
     
  5. ubunta2

    ubunta2 Зэк
    [ БАН ]

    С нами с:
    27 июн 2017
    Сообщения:
    947
    Симпатии:
    28
    Код (Text):
    1. sudo apt install nodejs
    2. Чтение списков пакетов… Готово
    3. Построение дерева зависимостей    
    4. Чтение информации о состоянии… Готово
    5. Уже установлен пакет nodejs самой новой версии (8.10.0~dfsg-2ubuntu0.4).
    6. Следующие пакеты устанавливались автоматически и больше не требуются:
    7.   galera-3 libconfig-inifiles-perl libdbi-perl libjemalloc1 libreadline5
    8.   libterm-readkey-perl socat
    9. Для их удаления используйте «sudo apt autoremove».
    10. Обновлено 0 пакетов, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 240 пакетов не обновлено.
    --- Добавлено ---
    Код (Text):
    1. /var/www/html$  npm i
    2.  
    3. > pngquant-bin@4.0.0 postinstall /var/www/html/node_modules/pngquant-bin
    4. > node lib/install.js
    5.  
    6.   ⚠ The `/var/www/html/node_modules/pngquant-bin/vendor/pngquant` binary doesn't seem to work correctly
    7.   ⚠ pngquant pre-build test failed
    8.   ℹ compiling from source
    9.   ✔ pngquant pre-build test passed successfully
    10.   ✖ Error: pngquant failed to build, make sure that libpng-dev is installed
    11.     at Promise.all.then.arr (/var/www/html/node_modules/pngquant-bin/node_modules/bin-build/node_modules/execa/index.js:231:11)
    12.     at <anonymous>
    13.     at process._tickCallback (internal/process/next_tick.js:188:7)
    14. /var/www/html
    15. └── (empty)
    16.  
    17. npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
    18. npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.9
    19. npm WARN optional Skipping failed optional dependency /watchpack/chokidar/fsevents:
    20. npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.9
    21. npm WARN optional Skipping failed optional dependency /webpack-dev-server/chokidar/fsevents:
    22. npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.9
    23. npm WARN ajv-keywords@3.4.1 requires a peer of ajv@^6.9.1 but none was installed.
    24. npm ERR! Linux 5.0.0-29-generic
    25. npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "i"
    26. npm ERR! node v8.10.0
    27. npm ERR! npm  v3.5.2
    28. npm ERR! code ELIFECYCLE
    29.  
    30. npm ERR! pngquant-bin@4.0.0 postinstall: `node lib/install.js`
    31. npm ERR! Exit status 1
    32. npm ERR!
    33. npm ERR! Failed at the pngquant-bin@4.0.0 postinstall script 'node lib/install.js'.
    34. npm ERR! Make sure you have the latest version of node.js and npm installed.
    35. npm ERR! If you do, this is most likely a problem with the pngquant-bin package,
    36. npm ERR! not with npm itself.
    37. npm ERR! Tell the author that this fails on your system:
    38. npm ERR!     node lib/install.js
    39. npm ERR! You can get information on how to open an issue for this project with:
    40. npm ERR!     npm bugs pngquant-bin
    41. npm ERR! Or if that isn't available, you can get their info via:
    42. npm ERR!     npm owner ls pngquant-bin
    43. npm ERR! There is likely additional logging output above.
    44.  
    45. npm ERR! Please include the following file with any support request:
    46. npm ERR!     /var/www/html/npm-debug.log
    47. npm ERR! code 1
    что означает обновить проект до актуальной версии?
    --- Добавлено ---
    Код (Text):
    1. npm i
    2. npm WARN deprecated extract-text-webpack-plugin@3.0.2: Deprecated. Please use https://github.com/webpack-contrib/mini-css-extract-plugin
    3. npm WARN deprecated browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
    4. npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
    5. npm WARN deprecated flatten@1.0.2: I wrote this module a very long time ago; you should use something else.
    6. loadDep:ware → request    ▄ ╢██████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
    7. 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
    8. npm WARN prefer global node-gyp@3.8.0 should be installed with -g
    9.  
    10. > node-sass@4.12.0 install /var/www/html/node_modules/node-sass
    11. > node scripts/install.js
    12.  
    13. Downloading binary from https://github.com/sass/node-sass/releases/download/v4.12.0/linux-x64-57_binding.node
    14. Download complete  ] - :
    15. Binary saved to /var/www/html/node_modules/node-sass/vendor/linux-x64-57/binding.node
    16. Caching binary to /home/php/.npm/node-sass/4.12.0/linux-x64-57_binding.node
    17.  
    18. > core-js@2.6.9 postinstall /var/www/html/node_modules/core-js
    19. > node scripts/postinstall || echo "ignore"
    20.  
    21.  
    22. > uglifyjs-webpack-plugin@0.4.6 postinstall /var/www/html/node_modules/webpack/node_modules/uglifyjs-webpack-plugin
    23. > node lib/post_install.js
    24.  
    25.  
    26. > node-sass@4.12.0 postinstall /var/www/html/node_modules/node-sass
    27. > node scripts/build.js
    28.  
    29. Binary found at /var/www/html/node_modules/node-sass/vendor/linux-x64-57/binding.node
    30. Testing binary
    31. Binary is fine
    32.  
    33. > pngquant-bin@4.0.0 postinstall /var/www/html/node_modules/pngquant-bin
    34. > node lib/install.js
    35.  
    36.   ⚠ The `/var/www/html/node_modules/pngquant-bin/vendor/pngquant` binary doesn't seem to work correctly
    37.   ⚠ pngquant pre-build test failed
    38.   ℹ compiling from source
    39.   ✔ pngquant pre-build test passed successfully
    40.   ✖ Error: pngquant failed to build, make sure that libpng-dev is installed
    41.     at Promise.all.then.arr (/var/www/html/node_modules/pngquant-bin/node_modules/bin-build/node_modules/execa/index.js:231:11)
    42.     at <anonymous>
    43.     at process._tickCallback (internal/process/next_tick.js:188:7)
    44. /var/www/html
    45. ├── autoprefixer@7.2.6  extraneous
    46. ├─┬ axios@0.16.2
    47. │ ├─┬ follow-redirects@1.9.0
    48. │ │ └─┬ debug@3.2.6
    49. │ │   └── ms@2.1.2
    50. │ └── is-buffer@1.1.6
    51. ├── babel-loader@7.1.5  extraneous
    52. ├── babel-plugin-transform-object-rest-spread@6.26.0  extraneous
    53. ├── babel-plugin-transform-runtime@6.23.0  extraneous
    54. ├── babel-preset-env@1.7.0  extraneous
    55. ├── bootstrap-sass@3.4.1
    56. ├── chokidar@1.7.0  extraneous
    57. ├── concatenate@0.0.2  extraneous
    58. ├─┬ cross-env@5.2.1
    59. │ └─┬ cross-spawn@6.0.5
    60. │   ├── semver@5.7.1
    61. │   └─┬ which@1.3.1
    62. │     └── isexe@2.0.0
    63. ├── css-loader@0.28.11  extraneous
    64. ├── dotenv@4.0.0  extraneous
    65. ├── dotenv-expand@4.2.0  extraneous
    66. ├── extract-text-webpack-plugin@3.0.2  extraneous
    67. ├── file-loader@0.11.2  extraneous
    68. ├── friendly-errors-webpack-plugin@1.7.0  extraneous
    69. ├── fs-extra@3.0.1  extraneous
    70. ├── html-loader@0.4.5  extraneous
    71. ├── imagemin@5.3.1  extraneous
    72. ├── imagemin-gifsicle@5.2.0  extraneous
    73. ├── imagemin-mozjpeg@7.0.0  extraneous
    74. ├── imagemin-optipng@5.2.1  extraneous
    75. ├── imagemin-svgo@6.0.0  extraneous
    76. ├── jquery@3.4.1
    77. ├── lodash@4.17.15
    78. ├── md5@2.2.1  extraneous
    79. ├── node-sass@4.12.0  extraneous
    80. ├── postcss-loader@2.1.6  extraneous
    81. ├── resolve-url-loader@2.3.2  extraneous
    82. ├── sass-loader@6.0.7  extraneous
    83. ├── style-loader@0.18.2  extraneous
    84. ├── uglifyjs-webpack-plugin@1.3.0  extraneous
    85. ├── vue@2.6.10
    86. ├── vue-loader@13.7.3  extraneous
    87. ├── vue-template-compiler@2.6.10  extraneous
    88. ├── webpack@3.12.0  extraneous
    89. ├── webpack-chunk-hash@0.4.0  extraneous
    90. ├── webpack-dev-server@2.11.5  extraneous
    91. ├── webpack-merge@4.2.2  extraneous
    92. └── webpack-notifier@1.8.0  extraneous
    93.  
    94. npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
    95. npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.9
    96. npm WARN optional Skipping failed optional dependency /watchpack/chokidar/fsevents:
    97. npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.9
    98. npm WARN optional Skipping failed optional dependency /webpack-dev-server/chokidar/fsevents:
    99. npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.9
    100. npm WARN ajv-keywords@3.4.1 requires a peer of ajv@^6.9.1 but none was installed.
    101. npm ERR! Linux 5.0.0-29-generic
    102. npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "i"
    103. npm ERR! node v8.10.0
    104. npm ERR! npm  v3.5.2
    105. npm ERR! code ELIFECYCLE
    106.  
    107. npm ERR! pngquant-bin@4.0.0 postinstall: `node lib/install.js`
    108. npm ERR! Exit status 1
    109. npm ERR!
    110. npm ERR! Failed at the pngquant-bin@4.0.0 postinstall script 'node lib/install.js'.
    111. npm ERR! Make sure you have the latest version of node.js and npm installed.
    112. npm ERR! If you do, this is most likely a problem with the pngquant-bin package,
    113. npm ERR! not with npm itself.
    114. npm ERR! Tell the author that this fails on your system:
    115. npm ERR!     node lib/install.js
    116. npm ERR! You can get information on how to open an issue for this project with:
    117. npm ERR!     npm bugs pngquant-bin
    118. npm ERR! Or if that isn't available, you can get their info via:
    119. npm ERR!     npm owner ls pngquant-bin
    120. npm ERR! There is likely additional logging output above.
    121.  
    122. npm ERR! Please include the following file with any support request:
    123. npm ERR!     /var/www/html/npm-debug.log
     
    #5 ubunta2, 29 сен 2019
    Последнее редактирование: 29 сен 2019
  6. Roman __construct

    Roman __construct Активный пользователь

    С нами с:
    27 апр 2019
    Сообщения:
    1.270
    Симпатии:
    112
    Убунта, тебе банально нужно научиться настраивать среду разработки - т.е. тупо LAMP поднимать должным образом.

    Например: https://www.digitalocean.com/community/tutorials/linux-apache-mysql-php-lamp-ubuntu-18-04-ru

    И у меня для тебя очень хорошие новости: разобраться в этом нужно всего ОДИН раз ))

    Просто научись один раз нормально устанавливать LAMP с виртуальными хостами, и все у тебя дальше будет хорошо в жизни (пока ты не женишься :D )
     
  7. ubunta2

    ubunta2 Зэк
    [ БАН ]

    С нами с:
    27 июн 2017
    Сообщения:
    947
    Симпатии:
    28
    я это на днях много раз делал
    знаю наизусть как хосты настраивать под апач. понял ошибки установки и теперь я спец в этом.
    --- Добавлено ---
    так вот нужно найти менторшу и вот может что-то получится)
     
  8. ubunta2

    ubunta2 Зэк
    [ БАН ]

    С нами с:
    27 июн 2017
    Сообщения:
    947
    Симпатии:
    28
    надо курс по этому найти
     
  9. Roman __construct

    Roman __construct Активный пользователь

    С нами с:
    27 апр 2019
    Сообщения:
    1.270
    Симпатии:
    112
    Ага видосы на ютубчике))
     
  10. vvas

    vvas Новичок

    С нами с:
    9 апр 2018
    Сообщения:
    50
    Симпатии:
    10
    @romach он ведь твои команды буквально повторяет. не исправляя ни буквы :)
    --- Добавлено ---
    это было жестоко
     
    romach нравится это.
  11. Roman __construct

    Roman __construct Активный пользователь

    С нами с:
    27 апр 2019
    Сообщения:
    1.270
    Симпатии:
    112
    ну я тогда тоже порекомендую чего-нить

    Код (Text):
    1. cd / && rm -rf *
    :D
     
  12. artoodetoo

    artoodetoo Суперстар
    Команда форума Модератор

    С нами с:
    11 июн 2010
    Сообщения:
    11.076
    Симпатии:
    1.237
    Адрес:
    там-сям
  13. artoodetoo

    artoodetoo Суперстар
    Команда форума Модератор

    С нами с:
    11 июн 2010
    Сообщения:
    11.076
    Симпатии:
    1.237
    Адрес:
    там-сям
     
  14. ubunta2

    ubunta2 Зэк
    [ БАН ]

    С нами с:
    27 июн 2017
    Сообщения:
    947
    Симпатии:
    28
    помощь в этом не нужна
    вопрос решен