Skip to content
This repository was archived by the owner on Mar 31, 2023. It is now read-only.
This repository was archived by the owner on Mar 31, 2023. It is now read-only.

Can't run $ npm start without error #358

@erok415

Description

@erok415

emulsify version (see releases):
emulsify@1.0.0

node version:
v8.17.0

npm (or yarn) version:
6.13.4

What you did:
After running $ npm install, I'm having issues running $ npm start

What happened:

> emulsify@1.0.0 start /Users/ErikCochran/Sites/GitHub/evat/web/themes/custom/eventsat
> gulp compile && gulp theme

[10:29:10] Using gulpfile ~/Sites/GitHub/evat/web/themes/custom/eventsat/gulpfile.js
[10:29:10] Starting 'imagemin'...
[10:29:10] Finished 'imagemin' after 87 ms
[10:29:10] Starting 'icons'...
[10:29:10] Finished 'icons' after 18 ms
[10:29:10] Starting 'pl:scss-to-yaml'...
[10:29:10] Finished 'pl:scss-to-yaml' after 11 ms
[10:29:10] Starting 'pl:full'...
configuring pattern lab...
[10:29:12] gulp-imagemin: Minified 0 images
PHP Notice:  Array to string conversion in /[project-hidden ThemeName]/pattern-lab/vendor/twig/twig/src/Environment.php(497) : eval()'d code on line 39
PHP Warning:  strtr() expects parameter 1 to be string, array given in [project-hidden ThemeName]/pattern-lab/vendor/twig/twig/src/Extension/CoreExtension.php on line 521
PHP Notice:  Array to string conversion in [project-hidden ThemeName]/pattern-lab/vendor/twig/twig/src/Environment.php(497) : eval()'d code on line 51
PHP Notice:  Array to string conversion in [project-hidden ThemeName]/pattern-lab/vendor/twig/twig/src/Environment.php(497) : eval()'d code on line 156
PHP Notice:  Array to string conversion in [project-hidden ThemeName]/pattern-lab/vendor/twig/twig/src/Environment.php(497) : eval()'d code on line 70
PHP Notice:  Array to string conversion in [project-hidden ThemeName]/pattern-lab/vendor/twig/twig/src/Environment.php(497) : eval()'d code on line 51
PHP Notice:  Array to string conversion in [project-hidden ThemeName]/pattern-lab/vendor/twig/twig/src/Environment.php(497) : eval()'d code on line 70
PHP Notice:  Array to string conversion in [project-hidden ThemeName]/pattern-lab/vendor/twig/twig/src/Environment.php(497) : eval()'d code on line 51
PHP Warning:  strip_tags() expects parameter 1 to be string, array given in [project-hidden ThemeName]/pattern-lab/vendor/twig/twig/src/Environment.php(497) : eval()'d code on line 63
PHP Notice:  Array to string conversion in [project-hidden ThemeName]/pattern-lab/vendor/twig/twig/src/Environment.php(497) : eval()'d code on line 62
PHP Fatal error:  Uncaught Twig\Error\SyntaxError: Unknown "url" function in "{#
/**
 * @file
 * Template for the order receipt.
 *
 * Available variables:
 * - order_entity: The order entity.
 * - billing_information: The billing information.
 * - shipping_information: The shipping information.
 * - payment_method: The payment method.
 * - totals: An array of order totals values with the following keys:
 *   - subtotal: The order subtotal price.
 *   - adjustments: An array of adjustment totals:
 *     - type: The adjustment type.
 *     - label: The adjustment label.
 *     - total: The adjustment total price.
 *     - weight: The adjustment weight, taken from the adjustment type.
 *   - total: The order total price.
 *
 * @ingroup themeable
 */
#}
<table style="margin: 15px auto 0 auto; max-width: 768px; font-family: arial,sans-serif;">
  <tbody>
  <tr>
    <td>
      <table style="margin-left: auto; margin-right: auto; max-width: 768px; text-align: center;">
        <tbody>
        <tr>
          <td>
            <a href=" in /[project-hidden ThemeName]/pattern-lab/vendor/twig/twig/src/ExpressionParser.php on line 758

Fatal error: Uncaught Twig\Error\SyntaxError: Unknown "url" function in "{#
/**
 * @file
 * Template for the order receipt.
 *
 * Available variables:
 * - order_entity: The order entity.
 * - billing_information: The billing information.
 * - shipping_information: The shipping information.
 * - payment_method: The payment method.
 * - totals: An array of order totals values with the following keys:
 *   - subtotal: The order subtotal price.
 *   - adjustments: An array of adjustment totals:
 *     - type: The adjustment type.
 *     - label: The adjustment label.
 *     - total: The adjustment total price.
 *     - weight: The adjustment weight, taken from the adjustment type.
 *   - total: The order total price.
 *
 * @ingroup themeable
 */
#}
<table style="margin: 15px auto 0 auto; max-width: 768px; font-family: arial,sans-serif;">
  <tbody>
  <tr>
    <td>
      <table style="margin-left: auto; margin-right: auto; max-width: 768px; text-align: center;">
        <tbody>
        <tr>
          <td>
            <a href=" in [project-hidden]/web/themes/custom/[theme]/pattern-lab/vendor/twig/twig/src/ExpressionParser.php on line 758
Error with code 255 after running: php pattern-lab/core/console --generate
npm ERR! code ELIFECYCLE
npm ERR! errno 255
npm ERR! emulsify@1.0.0 start: `gulp compile && gulp theme`
npm ERR! Exit status 255
npm ERR!
npm ERR! Failed at the emulsify@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/ErikCochran/.npm/_logs/2020-04-03T17_29_13_290Z-debug.log

Reproduction repository (if necessary):

Problem description:
I can't run npm install

Suggested solution:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions