-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install fails : "ynh_npm: command not found" #107
Comments
Hi! Weird. What's the output of |
Hello, Here you go: root@yuno:~# ls -la "/opt/node_n/n/versions/node/14/bin/npm"
lrwxrwxrwx 1 root root 38 Oct 12 04:07 /opt/node_n/n/versions/node/14/bin/npm -> ../lib/node_modules/npm/bin/npm-cli.js
root@yuno:~# which ynh_npm
root@yuno:~# whereis ynh_npm
ynh_npm:
root@yuno:~# |
I think that's due to the use of the helper after another one ( Can you try installing my attempt at a fix? Edit: Tested on my end, no issues. |
Possible regression from YunoHost/yunohost#1358? |
It works now but I end up with the error Info: Installing kresus...
Info: [+...................] > Validating installation parameters...
Info: [#+..................] > Storing installation settings...
Info: [##++................] > Finding an available port...
Info: [####+...............] > Installing app dependencies
Info: [#####+..............] > Setting up source files...
Info: [######++............] > Configuring NGINX web server...
Info: [########+...........] > Creating system user
Info: [#########+..........] > Installing nodejs
Info: [##########++........] > Installing woob
Info: [############+.......] > Installing app
Error: Unable to install kresus: An error occurred inside the app installation script
Info: The operation 'Install the 'kresus' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20211117-190136-app_install-kresus' to get help
Warning: Here's an extract of the logs before the crash. It might help debugging the error:
Info: DEBUG - gyp ERR! node -v v14.18.1
Info: DEBUG - gyp ERR! node-gyp -v v5.1.0
Info: DEBUG - gyp ERR! not ok
Info: DEBUG - npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/@nicolo-ribaudo/chokidar-2/node_modules/chokidar/node_modules/fsevents):
Info: DEBUG - npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
Info: DEBUG - npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents):
Info: DEBUG - npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
Info: DEBUG - npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/mocha/node_modules/chokidar/node_modules/fsevents):
Info: DEBUG - npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
Info: DEBUG -
Info: DEBUG - npm ERR! code ELIFECYCLE
Info: DEBUG - npm ERR! errno 1
Info: DEBUG - npm ERR! [email protected] install: `node-gyp rebuild`
Info: DEBUG - npm ERR! Exit status 1
Info: DEBUG - npm ERR!
Info: DEBUG - npm ERR! Failed at the [email protected] install script.
Info: DEBUG - npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Info: DEBUG -
Info: DEBUG - npm ERR! A complete log of this run can be found in:
Info: DEBUG - npm ERR! /root/.npm/_logs/2021-11-17T19_06_49_041Z-debug.log
Info: DEBUG - + ynh_exit_properly
Warning: Removing the app following the installation failure...
Info: [+++.................] > Removing systemd configuration
Info: [###+++..............] > Removing associated database
Warning: cat: /etc/yunohost/psql: No such file or directory
Warning: Database not found
Warning: cat: /etc/yunohost/psql: No such file or directory
Warning: User not found
Info: [######++++..........] > Removing dependencies
Info: [##########+++.......] > Removing NGINX configuration
Info: [#############+++....] > Removing the dedicated system user...
Info: [####################] > Removal of kresus completed
Error: The operation 'Install the 'kresus' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share XXX-kresus' to get help
root@yuno:~# I can try commands listed here maybe? #71 (comment) edit: add install logs https://paste.yunohost.org/tejeleziro.bash |
fyi (in case it may help) Tried to install with the testing branch. Installation seemed to go well but when I try to open the app I get a 502 error. Keep it up ✌️ |
Hi, A 502 error is different. Can you provide the logs please? |
(sorry for not answering. I didn't have the time to get back into it.) |
Describe the bug
Hello there,
I tried to install kresus from the web interface and I get the error in the logs:
2021-11-14 14:39:55,928: DEBUG - /usr/share/yunohost/helpers.d/logging: line 143: ynh_npm: command not found
Context
If it can help, I tried to install the package a few months ago and has the same issue described here: #106
Steps to reproduce
Expected behavior
Kresus should be installed
Logs
full log: https://paste.yunohost.org/gehofasiqo.sql
Extract:
The text was updated successfully, but these errors were encountered: