์๋
ํ์ญ๋๊น,
Akeneo CE 2.0.0์ ์ฌ์ฉํ๋ฉด ์ด ๋ฌธ์ ๊ฐ ๋ฐ์ํฉ๋๋ค.
root<strong i="7">@fd5447edca6a</strong>:/var/www/html/pim-community-standard# yarn --verbose run webpack
yarn run v1.2.1
warning package.json: No license field
verbose 0.345 Checking for configuration file "/var/www/html/pim-community-standard/.npmrc".
verbose 0.345 Checking for configuration file "/usr/local/share/.npmrc".
verbose 0.345 Checking for configuration file "/usr/etc/npmrc".
verbose 0.345 Checking for configuration file "/root/.npmrc".
verbose 0.346 Checking for configuration file "/var/www/html/pim-community-standard/.npmrc".
verbose 0.346 Checking for configuration file "/var/www/html/.npmrc".
verbose 0.346 Checking for configuration file "/var/www/.npmrc".
verbose 0.346 Checking for configuration file "/var/.npmrc".
verbose 0.347 Checking for configuration file "/var/www/html/pim-community-standard/.yarnrc".
verbose 0.347 Checking for configuration file "/usr/local/share/.yarnrc".
verbose 0.347 Found configuration file "/usr/local/share/.yarnrc".
verbose 0.347 Checking for configuration file "/usr/etc/yarnrc".
verbose 0.347 Checking for configuration file "/root/.yarnrc".
verbose 0.348 Checking for configuration file "/var/www/html/pim-community-standard/.yarnrc".
verbose 0.348 Checking for configuration file "/var/www/html/.yarnrc".
verbose 0.348 Checking for configuration file "/var/www/.yarnrc".
verbose 0.348 Checking for configuration file "/var/.yarnrc".
verbose 0.351 current time: 2017-11-03T09:07:03.706Z
$ yarn run sync && NODE_PATH=node_modules webpack --config $npm_package_config_source/webpack.config.js --env=prod
warning package.json: No license field
/bin/sh: 1: webpack: Permission denied
verbose 0.979 Error: Command failed with exit code 126.
at /usr/share/yarn/lib/cli.js:35603:15
at Generator.throw (<anonymous>)
at step (/usr/share/yarn/lib/cli.js:92:30)
at /usr/share/yarn/lib/cli.js:105:13
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
error Command failed with exit code 126.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
2.0.5 ํจ์น๋ก ํ ์คํธ ์ค์ด๋ฉฐ ๋์ผํฉ๋๋ค.
์์ฌ -v : 1.2.1
๋ฐ๋น์ ์คํธ๋ ์น
nodejs v8.9.0
์๋ ํ์ธ์ @Philippe-M
node 8.2.1๊ณผ yarn 1.0.0์ผ๋ก ์๋ํด๋ณด๊ณ ๋ฌธ์ ๊ฐ ์์ผ๋ฉด ์๋ ค์ฃผ์๊ฒ ์ต๋๊น? yarn install
์คํํ๋ ๋ฐ ๋ฌธ์ ๊ฐ ์์์ต๋๊น?
๊ฐ์ฌํฉ๋๋ค
@Philippe-M ์ด ๋ฌธ์ ์ ๋ํ ์ ๋ฐ์ดํธ๊ฐ ์์ต๋๊น? ์๋์ํค์ จ๋์?
๋ฌธ์ ์ธ์ฌ,
ํ๋ง๋ผ
๋ค์๊ณผ ๊ฐ์ ๋ฌธ์ ๊ฐ ๋ฐ์ํฉ๋๋ค.
๋
ธ๋: v6.13.1
์์ฌ: 1.3.2
PHP: 7.1.5
Akeneo 2.1.7(์ปค๋ฎค๋ํฐ)
$ yarn run webpack
yarn run v1.3.2
warning package.json: No license field
$ /opt/bitnami/nodejs/bin/yarn run sync && NODE_PATH=node_modules webpack --config $npm_package_config_source/webpack.config.js --env=prod
warning package.json: No license field
$ NODE_PATH=node_modules /opt/bitnami/nodejs/bin/node $npm_package_config_check --source=$npm_package_config_source
/bin/sh: 1: webpack: Permission denied
error Command failed with exit code 126.
fyi: webpack์ ์ค์นํ์ฌ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ์ต๋๋ค. ์นํฉ์ด ์ค์น๋์ง ์์์ต๋๋ค
์๋ ํ์ธ์, ์ ๋ 2.3.12๋ฅผ ์ ๋ฐ์ดํธํ๊ธฐ ์ํด akeneo 2.3.11๋ก ์ ํ ์คํธ๋ฅผ ๋ง๋ค๊ณ ์ด ๋ช ๋ น์ ์ฌ์ฉํ ํ์
service php7.1-fpm restart
rm -rf var/cache/* ./web/bundles/* ./web/css/* ./web/js/*
bin/console --env=prod pim:installer:assets
bin/console --env=prod cache:warmup
๋๋์ด ์ค๋ฅ๊ฐ์๋ค
yarn --verbose run webpack
yarn run v1.10.1
warning package.json: No license field
verbose 0.232 Checking for configuration file "/var/www/html/pim-project/.npmrc".
verbose 0.233 Checking for configuration file "/usr/local/share/.npmrc".
verbose 0.233 Checking for configuration file "/usr/etc/npmrc".
verbose 0.233 Checking for configuration file "/root/.npmrc".
verbose 0.233 Checking for configuration file "/var/www/html/pim-project/.npmrc".
verbose 0.233 Checking for configuration file "/var/www/html/.npmrc".
verbose 0.234 Checking for configuration file "/var/www/.npmrc".
verbose 0.234 Checking for configuration file "/var/.npmrc".
verbose 0.235 Checking for configuration file "/var/www/html/pim-project/.yarnrc".
verbose 0.235 Checking for configuration file "/usr/local/share/.yarnrc".
verbose 0.235 Found configuration file "/usr/local/share/.yarnrc".
verbose 0.235 Checking for configuration file "/usr/etc/yarnrc".
verbose 0.235 Checking for configuration file "/root/.yarnrc".
verbose 0.236 Checking for configuration file "/var/www/html/pim-project/.yarnrc".
verbose 0.236 Checking for configuration file "/var/www/html/.yarnrc".
verbose 0.236 Checking for configuration file "/var/www/.yarnrc".
verbose 0.236 Checking for configuration file "/var/.yarnrc".
verbose 0.24 current time: 2018-10-17T13:05:37.698Z
$ yarn run sync && NODE_PATH=node_modules webpack --config $npm_package_config_source/webpack.config.js --env=prod
warning package.json: No license field
$ NODE_PATH=node_modules node $npm_package_config_check --source=$npm_package_config_source
You have some npm dependencies that are out of date with the PIM:
Updated
- webpack@^4.20.2 -> 3.5.5
Automatically syncing your dependencies...
Running: yarn add [email protected]
warning package.json: No license field
warning [email protected]: No license field
warning [email protected]: No license field
/bin/sh: 1: webpack: Permission denied
verbose 18.88 Error: Command failed with exit code 126.
at MessageError.ExtendableBuiltin (/usr/share/yarn/lib/cli.js:243:66)
at new MessageError (/usr/share/yarn/lib/cli.js:272:123)
at /usr/share/yarn/lib/cli.js:34808:15
at Generator.throw (<anonymous>)
at step (/usr/share/yarn/lib/cli.js:98:30)
at /usr/share/yarn/lib/cli.js:111:13
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7)
error Command failed with exit code 126.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@Philippe-M ์ด์ ์ yarn install
๋ณด์
จ์ต๋๊น?
@ankit-sf๊ฐ ๋ณด๊ณ ํ ๋ฌธ์ ๋ฅผ ์์ ํ ๊ฒ์ผ๋ก ๋ณด์
๋๋ค.
์ด ๋ฌธ์ ๊ฐ ํด๊ฒฐ๋์์ต๋๋ค.
์์ฌ๋ฅผ ์ค์นํ๊ณ yarn run webpack
์์ํด์ผ ํฉ๋๋ค.
์ด ๋ฌธ์ ๋ฅผ ๋ซ๊ณ ,
์ฌ์ ํ ๋ฌธ์ ๊ฐ ์๋ ๊ฒฝ์ฐ ์์ ๋กญ๊ฒ ๋ค์ ์ฌ์ญ์์ค.
๋ฌธ์ ์ธ์ฌ,
์๋ ํ์ธ์ @Philippe-M
node 8.2.1๊ณผ yarn 1.0.0์ผ๋ก ์๋ํด๋ณด๊ณ ๋ฌธ์ ๊ฐ ์์ผ๋ฉด ์๋ ค์ฃผ์๊ฒ ์ต๋๊น?
yarn install
์คํํ๋ ๋ฐ ๋ฌธ์ ๊ฐ ์์์ต๋๊น?๊ฐ์ฌํฉ๋๋ค
์๋ ํ์ธ์ @Philippe-M
node 8.2.1๊ณผ yarn 1.0.0์ผ๋ก ์๋ํด๋ณด๊ณ ๋ฌธ์ ๊ฐ ์์ผ๋ฉด ์๋ ค์ฃผ์๊ฒ ์ต๋๊น?
yarn install
์คํํ๋ ๋ฐ ๋ฌธ์ ๊ฐ ์์์ต๋๊น?๊ฐ์ฌํฉ๋๋ค
์๊ธฐ์์ผ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค...๋๋ก๋ ๊ฑด๋ง์ฆ :DDD
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
์๋ ํ์ธ์ @Philippe-M
node 8.2.1๊ณผ yarn 1.0.0์ผ๋ก ์๋ํด๋ณด๊ณ ๋ฌธ์ ๊ฐ ์์ผ๋ฉด ์๋ ค์ฃผ์๊ฒ ์ต๋๊น?
yarn install
์คํํ๋ ๋ฐ ๋ฌธ์ ๊ฐ ์์์ต๋๊น?๊ฐ์ฌํฉ๋๋ค