<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic NPM Run Build issue on MAC in Installation</title>
    <link>https://community.splunk.com/t5/Installation/NPM-Run-Build-issue-on-MAC/m-p/469414#M6029</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;

&lt;P&gt;Here is the error log that am getting while trying to build the app, i have seen few recommendation to use "%" in the build path &lt;CODE&gt;$SPLUNK_HOME/bin/splunk cmd node ./node_modules/webpack/bin/webpack.js&lt;/CODE&gt;, but i think thats a fix for Windows machine, could you please gimme a solution the path setting on MAC. &lt;/P&gt;

&lt;P&gt;Error Log : &lt;BR /&gt;
0 info it worked if it ends with ok&lt;BR /&gt;
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'build' ]&lt;BR /&gt;
2 info using &lt;A href="mailto:npm@6.9.0" target="_blank"&gt;npm@6.9.0&lt;/A&gt;&lt;BR /&gt;
3 info using &lt;A href="mailto:node@v10.16.0" target="_blank"&gt;node@v10.16.0&lt;/A&gt;&lt;BR /&gt;
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]&lt;BR /&gt;
5 info lifecycle &lt;A href="mailto:standin@1.0.0" target="_blank"&gt;standin@1.0.0&lt;/A&gt;~prebuild: &lt;A href="mailto:standin@1.0.0" target="_blank"&gt;standin@1.0.0&lt;/A&gt;&lt;BR /&gt;
6 info lifecycle &lt;A href="mailto:standin@1.0.0" target="_blank"&gt;standin@1.0.0&lt;/A&gt;~build: &lt;A href="mailto:standin@1.0.0" target="_blank"&gt;standin@1.0.0&lt;/A&gt;&lt;BR /&gt;
7 verbose lifecycle &lt;A href="mailto:standin@1.0.0" target="_blank"&gt;standin@1.0.0&lt;/A&gt;~build: unsafe-perm in lifecycle true&lt;BR /&gt;
8 verbose lifecycle &lt;A href="mailto:standin@1.0.0" target="_blank"&gt;standin@1.0.0&lt;/A&gt;~build: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Applications/Splunk/etc/apps/viz_tutorial_app/appserver/static/visualizations/radial_meter/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin&lt;BR /&gt;
9 verbose lifecycle &lt;A href="mailto:standin@1.0.0" target="_blank"&gt;standin@1.0.0&lt;/A&gt;~build: CWD: /Applications/Splunk/etc/apps/viz_tutorial_app/appserver/static/visualizations/radial_meter&lt;BR /&gt;
10 silly lifecycle &lt;A href="mailto:standin@1.0.0" target="_blank"&gt;standin@1.0.0&lt;/A&gt;~build: Args: [ '-c',&lt;BR /&gt;
10 silly lifecycle   '$SPLUNK_HOME/bin/splunk cmd node ./node_modules/webpack/bin/webpack.js' ]&lt;BR /&gt;
11 info lifecycle &lt;A href="mailto:standin@1.0.0" target="_blank"&gt;standin@1.0.0&lt;/A&gt;~build: Failed to exec build script&lt;BR /&gt;
12 verbose stack Error: &lt;A href="mailto:standin@1.0.0" target="_blank"&gt;standin@1.0.0&lt;/A&gt; build: &lt;CODE&gt;$SPLUNK_HOME/bin/splunk cmd node ./node_modules/webpack/bin/webpack.js&lt;/CODE&gt;&lt;BR /&gt;
12 verbose stack spawn ENOENT&lt;BR /&gt;
12 verbose stack     at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18)&lt;BR /&gt;
12 verbose stack     at ChildProcess.emit (events.js:198:13)&lt;BR /&gt;
12 verbose stack     at maybeClose (internal/child_process.js:982:16)&lt;BR /&gt;
12 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)&lt;BR /&gt;
13 verbose pkgid &lt;A href="mailto:standin@1.0.0" target="_blank"&gt;standin@1.0.0&lt;/A&gt;&lt;BR /&gt;
14 verbose cwd /Applications/Splunk/etc/apps/viz_tutorial_app/appserver/static/visualizations/radial_meter&lt;BR /&gt;
15 verbose Darwin 18.7.0&lt;BR /&gt;
16 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"&lt;BR /&gt;
17 verbose node v10.16.0&lt;BR /&gt;
18 verbose npm  v6.9.0&lt;BR /&gt;
19 error file sh&lt;BR /&gt;
20 error code ELIFECYCLE&lt;BR /&gt;
21 error errno ENOENT&lt;BR /&gt;
22 error syscall spawn&lt;BR /&gt;
23 error &lt;A href="mailto:standin@1.0.0" target="_blank"&gt;standin@1.0.0&lt;/A&gt; build: &lt;CODE&gt;$SPLUNK_HOME/bin/splunk cmd node ./node_modules/webpack/bin/webpack.js&lt;/CODE&gt;&lt;BR /&gt;
23 error spawn ENOENT&lt;BR /&gt;
24 error Failed at the &lt;A href="mailto:standin@1.0.0" target="_blank"&gt;standin@1.0.0&lt;/A&gt; build script.&lt;BR /&gt;
24 error This is probably not a problem with npm. There is likely additional logging output above.&lt;BR /&gt;
25 verbose exit [ 1, true ]&lt;/P&gt;

&lt;P&gt;Thanks in advance...!! &lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 02:45:03 GMT</pubDate>
    <dc:creator>kondrusiva3</dc:creator>
    <dc:date>2020-09-30T02:45:03Z</dc:date>
    <item>
      <title>NPM Run Build issue on MAC</title>
      <link>https://community.splunk.com/t5/Installation/NPM-Run-Build-issue-on-MAC/m-p/469414#M6029</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;

&lt;P&gt;Here is the error log that am getting while trying to build the app, i have seen few recommendation to use "%" in the build path &lt;CODE&gt;$SPLUNK_HOME/bin/splunk cmd node ./node_modules/webpack/bin/webpack.js&lt;/CODE&gt;, but i think thats a fix for Windows machine, could you please gimme a solution the path setting on MAC. &lt;/P&gt;

&lt;P&gt;Error Log : &lt;BR /&gt;
0 info it worked if it ends with ok&lt;BR /&gt;
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'build' ]&lt;BR /&gt;
2 info using &lt;A href="mailto:npm@6.9.0" target="_blank"&gt;npm@6.9.0&lt;/A&gt;&lt;BR /&gt;
3 info using &lt;A href="mailto:node@v10.16.0" target="_blank"&gt;node@v10.16.0&lt;/A&gt;&lt;BR /&gt;
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]&lt;BR /&gt;
5 info lifecycle &lt;A href="mailto:standin@1.0.0" target="_blank"&gt;standin@1.0.0&lt;/A&gt;~prebuild: &lt;A href="mailto:standin@1.0.0" target="_blank"&gt;standin@1.0.0&lt;/A&gt;&lt;BR /&gt;
6 info lifecycle &lt;A href="mailto:standin@1.0.0" target="_blank"&gt;standin@1.0.0&lt;/A&gt;~build: &lt;A href="mailto:standin@1.0.0" target="_blank"&gt;standin@1.0.0&lt;/A&gt;&lt;BR /&gt;
7 verbose lifecycle &lt;A href="mailto:standin@1.0.0" target="_blank"&gt;standin@1.0.0&lt;/A&gt;~build: unsafe-perm in lifecycle true&lt;BR /&gt;
8 verbose lifecycle &lt;A href="mailto:standin@1.0.0" target="_blank"&gt;standin@1.0.0&lt;/A&gt;~build: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Applications/Splunk/etc/apps/viz_tutorial_app/appserver/static/visualizations/radial_meter/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin&lt;BR /&gt;
9 verbose lifecycle &lt;A href="mailto:standin@1.0.0" target="_blank"&gt;standin@1.0.0&lt;/A&gt;~build: CWD: /Applications/Splunk/etc/apps/viz_tutorial_app/appserver/static/visualizations/radial_meter&lt;BR /&gt;
10 silly lifecycle &lt;A href="mailto:standin@1.0.0" target="_blank"&gt;standin@1.0.0&lt;/A&gt;~build: Args: [ '-c',&lt;BR /&gt;
10 silly lifecycle   '$SPLUNK_HOME/bin/splunk cmd node ./node_modules/webpack/bin/webpack.js' ]&lt;BR /&gt;
11 info lifecycle &lt;A href="mailto:standin@1.0.0" target="_blank"&gt;standin@1.0.0&lt;/A&gt;~build: Failed to exec build script&lt;BR /&gt;
12 verbose stack Error: &lt;A href="mailto:standin@1.0.0" target="_blank"&gt;standin@1.0.0&lt;/A&gt; build: &lt;CODE&gt;$SPLUNK_HOME/bin/splunk cmd node ./node_modules/webpack/bin/webpack.js&lt;/CODE&gt;&lt;BR /&gt;
12 verbose stack spawn ENOENT&lt;BR /&gt;
12 verbose stack     at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18)&lt;BR /&gt;
12 verbose stack     at ChildProcess.emit (events.js:198:13)&lt;BR /&gt;
12 verbose stack     at maybeClose (internal/child_process.js:982:16)&lt;BR /&gt;
12 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)&lt;BR /&gt;
13 verbose pkgid &lt;A href="mailto:standin@1.0.0" target="_blank"&gt;standin@1.0.0&lt;/A&gt;&lt;BR /&gt;
14 verbose cwd /Applications/Splunk/etc/apps/viz_tutorial_app/appserver/static/visualizations/radial_meter&lt;BR /&gt;
15 verbose Darwin 18.7.0&lt;BR /&gt;
16 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"&lt;BR /&gt;
17 verbose node v10.16.0&lt;BR /&gt;
18 verbose npm  v6.9.0&lt;BR /&gt;
19 error file sh&lt;BR /&gt;
20 error code ELIFECYCLE&lt;BR /&gt;
21 error errno ENOENT&lt;BR /&gt;
22 error syscall spawn&lt;BR /&gt;
23 error &lt;A href="mailto:standin@1.0.0" target="_blank"&gt;standin@1.0.0&lt;/A&gt; build: &lt;CODE&gt;$SPLUNK_HOME/bin/splunk cmd node ./node_modules/webpack/bin/webpack.js&lt;/CODE&gt;&lt;BR /&gt;
23 error spawn ENOENT&lt;BR /&gt;
24 error Failed at the &lt;A href="mailto:standin@1.0.0" target="_blank"&gt;standin@1.0.0&lt;/A&gt; build script.&lt;BR /&gt;
24 error This is probably not a problem with npm. There is likely additional logging output above.&lt;BR /&gt;
25 verbose exit [ 1, true ]&lt;/P&gt;

&lt;P&gt;Thanks in advance...!! &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:45:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/NPM-Run-Build-issue-on-MAC/m-p/469414#M6029</guid>
      <dc:creator>kondrusiva3</dc:creator>
      <dc:date>2020-09-30T02:45:03Z</dc:date>
    </item>
  </channel>
</rss>

