fractal: npm build fails

Apologies for filling so many tickets at the moment - dont think this one is down to a typo though 😃

fractal build runs happily directly at the command prompt / shell - however if I wrap it up into my package.json file - i.e

 "scripts": {
    "build": "fractal build"
  }

and then try and run with npm build the following log error is generated

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'start' ]
2 info using npm@3.10.3
3 info using node@v6.3.1
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle fractal-test@1.0.0~prestart: fractal-test@1.0.0
6 silly lifecycle fractal-test@1.0.0~prestart: no script for prestart, continuing
7 info lifecycle fractal-test@1.0.0~start: fractal-test@1.0.0
8 verbose lifecycle fractal-test@1.0.0~start: unsafe-perm in lifecycle true
9 verbose lifecycle fractal-test@1.0.0~start: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;C:\Users\phk\documents\workspaces\arcstyling\scaffolding\fractal\node_modules\.bin;C:\Program Files\nodejs;C:\Users\phk\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\local\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\cmd;C:\Users\phk\Downloads\ConEmu\Scripts;C:\Users\phk\Downloads;C:\Users\phk\Downloads\ConEmu;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\QuickTime\QTSystem;C:\WINDOWS\CCM;C:\WINDOWS\CCM;C:\WINDOWS\CCM;C:\WINDOWS\CCM;C:\WINDOWS\CCM;C:\WINDOWS\CCM;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit;C:\Program Files\Git\cmd;C:\Program Files\nodejs;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Microsoft SQL Server\120\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files\Microsoft SQL Server\110\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0;C:\WINDOWS\system32\config\systemprofile\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Users\phk\AppData\Roaming\npm;C:\Users\phk\AppData\Local\atom\bin;C:\Program Files\Git\usr\bin\vendor_perl;C:\Program Files\Git\usr\bin\core_perl
10 verbose lifecycle fractal-test@1.0.0~start: CWD: C:\Users\phk\documents\workspaces\arcstyling\scaffolding\fractal
11 silly lifecycle fractal-test@1.0.0~start: Args: [ '/d /s /c', 'fractal build' ]
12 silly lifecycle fractal-test@1.0.0~start: Returned: code: 1  signal: null
13 info lifecycle fractal-test@1.0.0~start: Failed to exec start script
14 verbose stack Error: fractal-test@1.0.0 start: `fractal build`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:242:16)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at EventEmitter.emit (events.js:191:7)
14 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at ChildProcess.emit (events.js:191:7)
14 verbose stack     at maybeClose (internal/child_process.js:852:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
15 verbose pkgid fractal-test@1.0.0
16 verbose cwd C:\Users\phk\documents\workspaces\arcstyling\scaffolding\fractal
17 error Windows_NT 6.1.7601
18 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
19 error node v6.3.1
20 error npm  v3.10.3
21 error code ELIFECYCLE
22 error fractal-test@1.0.0 start: `fractal build`
22 error Exit status 1
23 error Failed at the fractal-test@1.0.0 start script 'fractal build'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the fractal-test package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     fractal build
23 error You can get information on how to open an issue for this project with:
23 error     npm bugs fractal-test
23 error Or if that isn't available, you can get their info via:
23 error     npm owner ls fractal-test
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

node etc are all up to date. Something wrong at a local config error perhaps ?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 15 (6 by maintainers)

Commits related to this issue

Most upvoted comments

BOOM! The issue with windows and a config file called fractal.js. If you update your package.json to include

"fractal": {
        "main": "fractalfile.js"
    },

then change the name of your fractal.js to fractalfile.js it seems everything works!.