grant / go-diagram

🌐 A UML diagram editor for Golang projects
https://docs.google.com/document/d/1exvOxiBwERKd5P1nZ7hjmhkGchoAhr0tZK_f_3EVy2M
176 stars 20 forks source link

Error in building #10

Open a4abhishek opened 7 years ago

a4abhishek commented 7 years ago

I have installed nodejs then npm also. then tried building inside app by issuing

nodejs npm run build

inside: ~/Work/GoWorkspace/src/github.com/grant/go-diagram/app$

but error occured while building.

Message inside the terminal was:

> go-diagram@0.0.2 build /home/abhishek/Work/GoWorkspace/src/github.com/grant/go-diagram/app
> webpack --config webpack.config.js --progress --colors -p

/usr/bin/env: ‘node’: No such file or directory

npm ERR! Linux 4.10.0-37-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "build"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! go-diagram@0.0.2 build: `webpack --config webpack.config.js --progress --colors -p`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the go-diagram@0.0.2 build script 'webpack --config webpack.config.js --progress --colors -p'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the go-diagram package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     webpack --config webpack.config.js --progress --colors -p
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs go-diagram
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls go-diagram
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/abhishek/Work/GoWorkspace/src/github.com/grant/go-diagram/app/npm-debug.log

And content of npm-debug.log was:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'run', 'build' ]
2 info using npm@3.5.2
3 info using node@v4.2.6
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle go-diagram@0.0.2~prebuild: go-diagram@0.0.2
6 silly lifecycle go-diagram@0.0.2~prebuild: no script for prebuild, continuing
7 info lifecycle go-diagram@0.0.2~build: go-diagram@0.0.2
8 verbose lifecycle go-diagram@0.0.2~build: unsafe-perm in lifecycle true
9 verbose lifecycle go-diagram@0.0.2~build: PATH: /usr/share/npm/bin/node-gyp-bin:/home/abhishek/Work/GoWorkspace/src/github.com/grant/go-diagram/app/node_modules/.bin:/home/abhishek/bin:/home/abhishek/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/usr/share/gradle-4.0/bin:/home/abhishek/Work/GoWorkspace/bin:/usr/local/go/bin
10 verbose lifecycle go-diagram@0.0.2~build: CWD: /home/abhishek/Work/GoWorkspace/src/github.com/grant/go-diagram/app
11 silly lifecycle go-diagram@0.0.2~build: Args: [ '-c',
11 silly lifecycle   'webpack --config webpack.config.js --progress --colors -p' ]
12 info lifecycle go-diagram@0.0.2~build: Failed to exec build script
13 verbose stack Error: go-diagram@0.0.2 build: `webpack --config webpack.config.js --progress --colors -p`
13 verbose stack spawn ENOENT
13 verbose stack     at ChildProcess.<anonymous> (/usr/share/npm/lib/utils/spawn.js:17:16)
13 verbose stack     at emitTwo (events.js:87:13)
13 verbose stack     at ChildProcess.emit (events.js:172:7)
13 verbose stack     at maybeClose (internal/child_process.js:821:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
14 verbose pkgid go-diagram@0.0.2
15 verbose cwd /home/abhishek/Work/GoWorkspace/src/github.com/grant/go-diagram/app
16 error Linux 4.10.0-37-generic
17 error argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "build"
18 error node v4.2.6
19 error npm  v3.5.2
20 error file sh
21 error code ELIFECYCLE
22 error errno ENOENT
23 error syscall spawn
24 error go-diagram@0.0.2 build: `webpack --config webpack.config.js --progress --colors -p`
24 error spawn ENOENT
25 error Failed at the go-diagram@0.0.2 build script 'webpack --config webpack.config.js --progress --colors -p'.
25 error Make sure you have the latest version of node.js and npm installed.
25 error If you do, this is most likely a problem with the go-diagram package,
25 error not with npm itself.
25 error Tell the author that this fails on your system:
25 error     webpack --config webpack.config.js --progress --colors -p
25 error You can get information on how to open an issue for this project with:
25 error     npm bugs go-diagram
25 error Or if that isn't available, you can get their info via:
25 error     npm owner ls go-diagram
25 error There is likely additional logging output above.
26 verbose exit [ 1, true ]

npm-debug.log

Can somebody help me resolving the problem, It would be a great help.