Moin,
habe ein problem beim Installieren der einzelen Module
Leider scheitert es gerade an dem npm Package "nodemailer"
Ich habe ein Webhosting4000
Hier der Auszug auf dem npm-Installer:
Code
Anwendungsabhängigkeiten werden installiert
npm WARN lifecycle npm is using /opt/plesk/node/12/bin/node but there is no node binary in the current PATH. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
sh: node: command not found
npm WARN jscript@1.0.0 No description
npm WARN jscript@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! nodemailer@6.4.11 postinstall: `node -e "try{require('./postinstall')}catch(e){}"`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the nodemailer@6.4.11 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /var/www/vhosts/hosting111222.af996.netcup.net/.npm/_logs/2020-07-30T18_50_55_846Z-debug.log
Alles anzeigen
Und hier der Auszug aus dem kompletten Log:
Code
0 info it worked if it ends with ok
17 http fetch GET 200 https://registry.npmjs.org/nodemailer 16ms (from cache)
18 silly pacote range manifest for nodemailer@^6.4.11 fetched in 28ms
19 silly pacote range manifest for nodemailer@^6.4.11 fetched in 3ms
20 silly resolveWithNewModule nodemailer@6.4.11 checking installable status
21 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 129ms
22 timing stage:loadIdealTree Completed in 260ms
28 silly diffTrees add fsevents@2.1.3
29 silly diffTrees add nodemailer@6.4.11
31 silly decomposeActions fetch fsevents@2.1.3
32 silly decomposeActions extract fsevents@2.1.3
33 silly decomposeActions preinstall fsevents@2.1.3
34 silly decomposeActions build fsevents@2.1.3
35 silly decomposeActions install fsevents@2.1.3
36 silly decomposeActions postinstall fsevents@2.1.3
37 silly decomposeActions finalize fsevents@2.1.3
38 silly decomposeActions refresh-package-json fsevents@2.1.3
39 silly decomposeActions fetch nodemailer@6.4.11
40 silly decomposeActions extract nodemailer@6.4.11
41 silly decomposeActions preinstall nodemailer@6.4.11
42 silly decomposeActions build nodemailer@6.4.11
43 silly decomposeActions install nodemailer@6.4.11
44 silly decomposeActions postinstall nodemailer@6.4.11
45 silly decomposeActions finalize nodemailer@6.4.11
46 silly decomposeActions refresh-package-json nodemailer@6.4.11
47 silly install executeActions
48 silly doSerial global-install 16
49 verbose correctMkdir /var/www/vhosts/hosting15243.af996.netcup.net/.npm/_locks correctMkdir not in flight; initializing
50 verbose lock using /var/www/vhosts/hosting15243.af996.netcup.net/.npm/_locks/staging-0d9a792e0d13fa3d.lock for /var/www/vhosts/hosting15243.af996.netcup.net/websites/cloud.privatesystem/node_modules/.staging
51 silly doParallel extract 2
52 silly extract nodemailer@6.4.11
53 silly extract fsevents@2.1.3
54 silly tarball trying nodemailer@^6.4.11 by hash: sha512-BVZBDi+aJV4O38rxsUh164Dk1NCqgh6Cm0rQSb9SK/DHGll/DrCMnycVDD7msJgZCnmVa8ASo8EZzR7jsgTukQ==
55 silly tarball trying fsevents@2.1.3 by hash: sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==
56 silly extract fsevents@2.1.3 extracted to /var/www/vhosts/hosting15243.af996.netcup.net/websites/cloud.privatesystem/node_modules/.staging/fsevents-0ed15ef5 (37ms)
57 silly extract nodemailer@^6.4.11 extracted to /var/www/vhosts/hosting15243.af996.netcup.net/websites/cloud.privatesystem/node_modules/.staging/nodemailer-aa034c98 (53ms)
58 timing action:extract Completed in 55ms
59 silly doReverseSerial unbuild 16
60 silly doSerial remove 16
61 silly doSerial move 16
62 silly doSerial finalize 16
63 silly finalize /var/www/vhosts/hosting15243.af996.netcup.net/websites/cloud.privatesystem/node_modules/fsevents
64 silly finalize /var/www/vhosts/hosting15243.af996.netcup.net/websites/cloud.privatesystem/node_modules/nodemailer
65 timing action:finalize Completed in 4ms
66 silly doParallel refresh-package-json 2
67 silly refresh-package-json /var/www/vhosts/hosting15243.af996.netcup.net/websites/cloud.privatesystem/node_modules/fsevents
68 silly refresh-package-json /var/www/vhosts/hosting15243.af996.netcup.net/websites/cloud.privatesystem/node_modules/nodemailer
69 timing action:refresh-package-json Completed in 8ms
70 silly doParallel preinstall 2
71 silly preinstall nodemailer@6.4.11
72 info lifecycle nodemailer@6.4.11~preinstall: nodemailer@6.4.11
73 timing action:preinstall Completed in 0ms
74 silly doSerial build 16
75 silly build nodemailer@6.4.11
76 info linkStuff nodemailer@6.4.11
77 silly linkStuff nodemailer@6.4.11 has /var/www/vhosts/hosting15243.af996.netcup.net/websites/cloud.privatesystem/node_modules as its parent node_modules
78 timing action:build Completed in 1ms
79 silly doSerial global-link 16
80 silly doParallel update-linked 0
81 silly doSerial install 16
82 silly install nodemailer@6.4.11
83 info lifecycle nodemailer@6.4.11~install: nodemailer@6.4.11
84 timing action:install Completed in 1ms
85 silly doSerial postinstall 16
86 silly postinstall nodemailer@6.4.11
87 info lifecycle nodemailer@6.4.11~postinstall: nodemailer@6.4.11
88 warn lifecycle npm is using /opt/plesk/node/12/bin/node but there is no node binary in the current PATH. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
89 verbose lifecycle nodemailer@6.4.11~postinstall: unsafe-perm in lifecycle true
90 verbose lifecycle nodemailer@6.4.11~postinstall: PATH: /opt/plesk/node/12/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/var/www/vhosts/hosting15243.af996.netcup.net/websites/cloud.privatesystem/node_modules/nodemailer/node_modules/.bin:/var/www/vhosts/hosting15243.af996.netcup.net/websites/cloud.privatesystem/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
91 verbose lifecycle nodemailer@6.4.11~postinstall: CWD: /var/www/vhosts/hosting15243.af996.netcup.net/websites/cloud.privatesystem/node_modules/nodemailer
92 silly lifecycle nodemailer@6.4.11~postinstall: Args: [ '-c', `node -e "try{require('./postinstall')}catch(e){}"` ]
93 info lifecycle nodemailer@6.4.11~postinstall: Failed to exec postinstall script
94 timing action:postinstall Completed in 20ms
95 verbose unlock done using /var/www/vhosts/hosting15243.af996.netcup.net/.npm/_locks/staging-0d9a792e0d13fa3d.lock for /var/www/vhosts/hosting15243.af996.netcup.net/websites/cloud.privatesystem/node_modules/.staging
96 timing stage:rollbackFailedOptional Completed in 13ms
97 timing stage:runTopLevelLifecycles Completed in 701ms
98 silly saveTree jscript@1.0.0
98 silly saveTree +-- express-session@1.17.1
98 silly saveTree | +-- cookie-signature@1.0.6
99 warn jscript@1.0.0 No description
100 warn jscript@1.0.0 No repository field.
101 warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents):
102 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
103 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: darwin
103 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: any
103 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux
103 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
104 verbose stack Error: nodemailer@6.4.11 postinstall: `node -e "try{require('./postinstall')}catch(e){}"`
104 verbose stack spawn ENOENT
104 verbose stack at ChildProcess.<anonymous> (/opt/plesk/node/12/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18)
104 verbose stack at ChildProcess.emit (events.js:200:13)
104 verbose stack at maybeClose (internal/child_process.js:1021:16)
104 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
105 verbose pkgid nodemailer@6.4.11
106 verbose cwd /var/www/vhosts/hosting15243.af996.netcup.net/websites/cloud.privatesystem
107 verbose Linux 4.9.0-12-amd64
108 verbose argv "/opt/plesk/node/12/bin/node" "/opt/plesk/node/12/bin/npm" "install"
109 verbose node v12.4.0
110 verbose npm v6.9.0
111 error file sh
112 error code ELIFECYCLE
113 error errno ENOENT
114 error syscall spawn
115 error nodemailer@6.4.11 postinstall: `node -e "try{require('./postinstall')}catch(e){}"`
115 error spawn ENOENT
116 error Failed at the nodemailer@6.4.11 postinstall script.
116 error This is probably not a problem with npm. There is likely additional logging output above.
117 verbose exit [ 1, true ]
Alles anzeigen
Hier die package.json
Code
{
"name": "jscript",
"version": "1.0.0",
"description": "",
"main": "main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "nodemon --use_strict main.js"
},
"author": "",
"license": "ISC",
"dependencies": {
"express": "^4.16.3",
"express-session": "^1.15.6",
"mysql": "^2.16.0",
"nunjucks": "^3.1.3",
"uuid": "^3.3.2",
"nodemailer": "^6.4.11"
}
}
Alles anzeigen
Da ich als Webhosting4000 Kunde ja keinen zugriff habe, den PATH zu ändern weiß ich nicht, wie ich das dann lösen könnte.
Vielen Dank für jeden Tipp
Grüße