Semantic-UI-Angular icon indicating copy to clipboard operation
Semantic-UI-Angular copied to clipboard

npm run build failed

Open freedom2012 opened this issue 8 years ago • 1 comments

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 'run', 1 verbose cli 'build' ] 2 info using [email protected] 3 info using [email protected] 4 verbose run-script [ 'prebuild', 'build', 'postbuild' ] 5 info lifecycle [email protected]~prebuild: [email protected] 6 silly lifecycle [email protected]~prebuild: no script for prebuild, continuing 7 info lifecycle [email protected]~build: [email protected] 8 verbose lifecycle [email protected]~build: unsafe-perm in lifecycle true 9 verbose lifecycle [email protected]~build: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;D:\Hejc\Semantic-UI-Angular-master\node_modules.bin;C:\Program Files\nodejs;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0;C:\Program Files\Microsoft\Web Platform Installer;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn;C:\Program Files\Microsoft SQL Server\100\Tools\Binn;C:\Program Files\Microsoft SQL Server\100\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn;C:\Program Files (x86)\Git\bin;C:\Program Files\nodejs;C:\Program Files\MongoDB\Server\3.2\bin;C:\Users\Linzc\AppData\Roaming\npm;D:\Program Files (x86)\SSH Communications Security\SSH Secure Shell 10 verbose lifecycle [email protected]~build: CWD: D:\Hejc\Semantic-UI-Angular-master 11 silly lifecycle [email protected]~build: Args: [ '/d /s /c', 'rm -rf dist && node_modules/.bin/webpack' ] 12 silly lifecycle [email protected]~build: Returned: code: 1 signal: null 13 info lifecycle [email protected]~build: Failed to exec build script 14 verbose stack Error: [email protected] build: rm -rf dist && node_modules/.bin/webpack 14 verbose stack Exit status 1 14 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:239: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. (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:24: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:850:16) 14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5) 15 verbose pkgid [email protected] 16 verbose cwd D:\Hejc\Semantic-UI-Angular-master 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" "run" "build" 19 error node v6.1.0 20 error npm v3.8.6 21 error code ELIFECYCLE 22 error [email protected] build: rm -rf dist && node_modules/.bin/webpack 22 error Exit status 1 23 error Failed at the [email protected] build script 'rm -rf dist && node_modules/.bin/webpack'. 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 semantic-ui-angular package, 23 error not with npm itself. 23 error Tell the author that this fails on your system: 23 error rm -rf dist && node_modules/.bin/webpack 23 error You can get information on how to open an issue for this project with: 23 error npm bugs semantic-ui-angular 23 error Or if that isn't available, you can get their info via: 23 error npm owner ls semantic-ui-angular 23 error There is likely additional logging output above. 24 verbose exit [ 1, true ]

What is the problem?

freedom2012 avatar May 18 '16 09:05 freedom2012

Just change line in package.json from this "build": "rm -rf dist && node_modules/.bin/webpack" to this "build": "node_modules/.bin/webpack"

Then you need manualy remove dist folder before running build

ppatrik avatar Aug 21 '16 12:08 ppatrik