You are not logged in.

#1 2017-02-13 15:51:14

step
Member
Registered: 2016-05-09
Posts: 56

Error compiling N1-git

Hi guys i have one problem to compile N1-git from AUR.
The error is the follow:

> atom-package-manager@1.1.1 install /tmp/yaourt-tmp-andrea/aur-n1-git/src/N1/apm/node_modules/atom-package-manager
> node ./script/download-node.js

module.js:472
    throw err;
    ^

Error: Cannot find module '../src/request'
  at Function.Module._resolveFilename (module.js:470:15)
  at Function.Module._load (module.js:418:25)
  at Module.require (module.js:498:17)
  at require (internal/module.js:20:19)
  at Object.<anonymous> (/tmp/yaourt-tmp-andrea/aur-n1-git/src/N1/apm/node_modules/atom-package-manager/script/download-node.js:16:13)
  at Module._compile (module.js:571:32)
  at Object.Module._extensions..js (module.js:580:10)
  at Module.load (module.js:488:32)
  at tryModuleLoad (module.js:447:12)
  at Function.Module._load (module.js:439:3)
  at Module.runMain (module.js:605:10)
  at run (bootstrap_node.js:418:7)
  at startup (bootstrap_node.js:139:9)
  at bootstrap_node.js:533:3

n1-bundled-apm@ /tmp/yaourt-tmp-andrea/aur-n1-git/src/N1/apm
└── d@0.1.1  extraneous

npm WARN n1-bundled-apm@ No license field.
npm ERR! Linux 4.9.8-1-ARCH
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v7.5.0
npm ERR! npm  v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1

npm ERR! atom-package-manager@1.1.1 install: `node ./script/download-node.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the atom-package-manager@1.1.1 install script 'node ./script/download-node.js'.
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 atom-package-manager package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ./script/download-node.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs atom-package-manager
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls atom-package-manager
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/andrea/.npm/_logs/2017-02-13T15_47_15_192Z-debug.log
==> ERRORE: Si è verificato un errore in build().
    L'operazione sta per essere interrotta...

$ cat  /home/andrea/.npm/_logs/2017-02-13T15_47_15_192Z-debug.log :

30729 verbose stack Error: atom-package-manager@1.1.1 install: `node ./script/download-node.js`
30729 verbose stack Exit status 1
30729 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:279:16)
30729 verbose stack     at emitTwo (events.js:106:13)
30729 verbose stack     at EventEmitter.emit (events.js:192:7)
30729 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14)
30729 verbose stack     at emitTwo (events.js:106:13)
30729 verbose stack     at ChildProcess.emit (events.js:192:7)
30729 verbose stack     at maybeClose (internal/child_process.js:890:16)
30729 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
30730 verbose pkgid atom-package-manager@1.1.1
30731 verbose cwd /tmp/yaourt-tmp-andrea/aur-n1-git/src/N1/apm
30732 error Linux 4.9.8-1-ARCH
30733 error argv "/usr/bin/node" "/usr/bin/npm" "install"
30734 error node v7.5.0
30735 error npm  v4.2.0
30736 error code ELIFECYCLE
30737 error errno 1
30738 error atom-package-manager@1.1.1 install: `node ./script/download-node.js`
30738 error Exit status 1
30739 error Failed at the atom-package-manager@1.1.1 install script 'node ./script/download-node.js'.
30739 error Make sure you have the latest version of node.js and npm installed.
30739 error If you do, this is most likely a problem with the atom-package-manager package,
30739 error not with npm itself.
30739 error Tell the author that this fails on your system:
30739 error     node ./script/download-node.js
30739 error You can get information on how to open an issue for this project with:
30739 error     npm bugs atom-package-manager
30739 error Or if that isn't available, you can get their info via:
30739 error     npm owner ls atom-package-manager
30739 error There is likely additional logging output above.
30740 verbose exit [ 1, true ]

Someone can help me?

Offline

#2 2017-02-13 18:30:24

olegabrielz
Member
From: Norway
Registered: 2015-12-23
Posts: 255

Re: Error compiling N1-git

I don't know that this has something to do with it but yaourt hasn't been updated since 2016-03-06 11:25. Have you tried installing with makepkg instead? Just:

cd <your builds folder> # If you don't have one, make one in your home folder.
git clone https://aur.archlinux.org/n1.git
cd n1
makepkg -cris

I don't use yaourt so I really don't know anything about it. But I just tried to install it as I just described and that worked out just fine.


Be aware of my Newbie Powers

Offline

#3 2017-02-13 19:14:45

step
Member
Registered: 2016-05-09
Posts: 56

Re: Error compiling N1-git

olegabrielz wrote:

I don't know that this has something to do with it but yaourt hasn't been updated since 2016-03-06 11:25. Have you tried installing with makepkg instead? Just:

cd <your builds folder> # If you don't have one, make one in your home folder.
git clone https://aur.archlinux.org/n1.git
cd n1
makepkg -cris

I don't use yaourt so I really don't know anything about it. But I just tried to install it as I just described and that worked out just fine.

Thank you for reply, now i try it. I'm trying to install not n1 but n1-git, n1 it's work but i want to compile myself in order to don't use .deb package
EDIT
I have the same error, how i can fix this problem?

Last edited by step (2017-02-13 19:24:01)

Offline

#4 2017-02-13 20:20:25

olegabrielz
Member
From: Norway
Registered: 2015-12-23
Posts: 255

Re: Error compiling N1-git

I can se it's complaining about the vesions of node.js and npm. Now my newbie powers kicks in and hopefully someone with more knowledge steps inn and helps out.
But is there a particular reason for choosing the git version?

Edit:
Forget I asked. You just wrote the reason. You don't want to use the .deb package.

Edit2:
Maybe you should just follow what the text tells you to do:

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 atom-package-manager package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ./script/download-node.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs atom-package-manager
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls atom-package-manager
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/andrea/.npm/_logs/2017-02-13T15_47_15_192Z-debug.log

Last edited by olegabrielz (2017-02-13 20:32:19)


Be aware of my Newbie Powers

Offline

Board footer

Powered by FluxBB