[
https://issues.apache.org/jira/browse/METRON-2320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16979266#comment-16979266
]
Tibor Meller commented on METRON-2320:
--------------------------------------
The post-install script in our package.json file was investigated. All the
copied source files exitst and properly placed under node_modules. The copy
script was also tested and evaluated.
However, this should theoretically work perfectly fine every one out of five
execution the copy script stuck in and fail to copy ace editor plugin files.
This more likely to happen when the copy script already executed successfully
and the developer execute npm ci/install bc a new dependency or package upgrade.
*The issue does not impact travis bc it’s always run npm ci on a clean
workspace.*
> [UI] metron-config npm install failing by copy-ace step
> -------------------------------------------------------
>
> Key: METRON-2320
> URL: https://issues.apache.org/jira/browse/METRON-2320
> Project: Metron
> Issue Type: Bug
> Reporter: Tibor Meller
> Assignee: Tibor Meller
> Priority: Major
>
> The error message pasted below does not always show up. Depending on the npm
> versions the post-install script just gets stuck or exit with an error.
> Hence the error is caused by ace editor's post install script the install get
> finished properly.
>
> {color:#172b4d} [email protected] postinstall
> D:\workspace\tiborm\metron\metron-interface\metron-config
> > npm run copy-ace & npm run copy-ace-snippets{color}{color:#000000}
> {color}{color:#cccccc}> [email protected] copy-ace
> D:\workspace\tiborm\metron\metron-interface\metron-config
> > cp -f $npm_package_config_node_ace/ext-language_tools.js
> $npm_package_config_node_ace/mode-json.js
> $npm_package_config_node_ace/theme-monokai.js
> $npm_package_config_node_ace/worker-json.js
> src/assets/ace{color}{color:#cccccc}cp: cannot stat
> '$npm_package_config_node_ace/ext-language_tools.js': No such file or
> directory
> cp: cannot stat '$npm_package_config_node_ace/mode-json.js': No such file or
> directory
> cp: cannot stat '$npm_package_config_node_ace/theme-monokai.js': No such
> file or directory
> cp: cannot stat '$npm_package_config_node_ace/worker-json.js': No such file
> or directory
> npm {color}{color:#c50f1f}ERR!{color}
> {color:#881798}code{color}{color:#cccccc} ELIFECYCLE
> npm {color}{color:#c50f1f}ERR!{color}
> {color:#881798}errno{color}{color:#cccccc} 1
> npm {color}{color:#c50f1f}ERR!{color}{color:#cccccc}
> [email protected] copy-ace: `cp -f
> $npm_package_config_node_ace/ext-language_tools.js
> $npm_package_config_node_ace/mode-json.js
> $npm_package_config_node_ace/theme-monokai.js $npm_package_config_node_ace/w
> orker-json.js src/assets/ace`
> npm {color}{color:#c50f1f}ERR!{color}{color:#cccccc} Exit status 1
> npm {color}{color:#c50f1f}ERR!{color}{color:#cccccc}npm
> {color}{color:#c50f1f}ERR!{color}{color:#cccccc} Failed at the
> [email protected] copy-ace script.
> npm {color}{color:#c50f1f}ERR!{color}{color:#cccccc} This is probably not a
> problem with npm. There is likely additional logging output
> above.{color}{color:#cccccc}npm
> {color}{color:#c50f1f}ERR!{color}{color:#cccccc} A complete log of this run
> can be found in:
> npm {color}{color:#c50f1f}ERR!{color}{color:#cccccc}
> C:\Users\shua\AppData\Roaming\npm-cache_logs\2019-11-19T12_15_00_922Z-debug.log{color}{color:#cccccc}>
> [email protected] copy-ace-snippets
> D:\workspace\tiborm\metron\metron-interface\metron-config
> > cp -f $npm_package_config_node_ace/snippets/text.js
> $npm_package_config_node_ace/snippets/json.js
> src/assets/ace/snippets{color}{color:#cccccc}cp: cannot stat
> '$npm_package_config_node_ace/snippets/text.js': No such file or directory
> cp: cannot stat '$npm_package_config_node_ace/snippets/json.js': No such
> file or directory
> npm {color}{color:#c50f1f}ERR!{color}
> {color:#881798}code{color}{color:#cccccc} ELIFECYCLE
> npm {color}{color:#c50f1f}ERR!{color}
> {color:#881798}errno{color}{color:#cccccc} 1
> npm {color}{color:#c50f1f}ERR!{color}{color:#cccccc}
> [email protected] copy-ace-snippets: `cp -f
> $npm_package_config_node_ace/snippets/text.js
> $npm_package_config_node_ace/snippets/json.js src/assets/ace/snippets`
> npm {color}{color:#c50f1f}ERR!{color}{color:#cccccc} Exit status 1
> npm {color}{color:#c50f1f}ERR!{color}{color:#cccccc}npm
> {color}{color:#c50f1f}ERR!{color}{color:#cccccc} Failed at the
> [email protected] copy-ace-snippets script.
> npm {color}{color:#c50f1f}ERR!{color}{color:#cccccc} This is probably not a
> problem with npm. There is likely additional logging output above.{color}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)