Semantic-UI-Angular
Semantic-UI-Angular copied to clipboard
npm run build failed
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.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?
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