-
Notifications
You must be signed in to change notification settings - Fork 24
v6 beta for z/OS - npm not working #90
Comments
I am curious about the file tag on npm. |
Here is the output from a number of ls commands. MJKARAG:/u/rjack11/node-v6.10.3-os390-s390x/bin:>ls -T npm npm MJKARAG:/u/rjack11/node-v6.10.3-os390-s390x/bin:>ls -a npm npm MJKARAG:/u/rjack11/node-v6.10.3-os390-s390x/bin:>ls -l npm lrwxrwxrwx 1 RJACK11 OEGROUP 38 Jun 28 22:40 npm -> ../lib/node_modules/npm/bin/npm-cli.js |
ls-T didn't output the encoding. Can you also test running a simple hello world file
|
Node itself seems to work fine. I've been able to run several existing apps that I have.
Looks like
If I remove the tags from the npm files, I still get the errors.
If I explicitly tag the npm files as IBM-1047, I get different errors:
|
That file should not be tagged. I wonder how it got the tag. pax -v -o T -f <path to pax> node-v6.10.3-os390-s390x/lib/node_modules/npm/bin/npm-cli.js It is also odd that the node binary has the Text flag turned on. |
|
Are you unpaxing using the following command? That command should not change the filetags. |
I am using the |
However, to clarify... as originally referenced in this issue, the tagging of npm doesn't appear to be the problem. I have re-installed multiple times, with and without auto-tagging, and still encounter the syntax error. My latest replies here are simply based on my most recent install attempt. So, to address the question of file tagging... I uninstalled, then again removed the auto-tagging settings from my .profile, and removed bash so that I come in on the the default shell (/bin/sh). I re-installed while under default environment, and see that the npm symlink and the npm-cli.js file install as untagged, but I still receive the syntax error:
|
FSUM7332 indicates that the shell is unable to process the npm script. Now that there is no file tagging, i am curious about the codepage of the npm script. |
|
That indicates that it is in the ebcdic codepage which is good.
The error message above seems to indicate that npm is being run as a shell script because that error code comes from the builtin shell utility.
Is node on your PATH? |
Ahh... that makes sense. Node is indeed in my PATH. However, I'll have to work with my sysadmins to get a symlink added to |
should work too I think. |
Well, this gets me past the syntax error, but now results in the process being immediately killed when issuing npm command:
|
The download page suggests setting a STEPLIB environment variable. |
Oh shoot! I forgot I had disabled that while going through the re-install iterations.
SUCCESS! Thanks a ton for the help! |
can one of you let me know what is the steplib to be added. I'm also having the same issues. |
This worked for me .. |
but getting -- npm ERR! A complete log of this run can be found in: |
Hi, v6 is out of service. We suggest upgrading to IBM SDK for Node .js - z/OS 14.0. |
All npm commands are failing.
If under /bin/sh, receiving the following error on all npm commands (e.g. npm --version, npm ls, npm config --global, etc):
If under bash, receive the following error on all npm commands:
Based on prior systax errors during install, I suspected AUTOCVT issues, but this may not be the case. I have uninstalled/reinstalled multiple times upon removal/disablement in .profile of the the following environment settings, and still encounter the same errors:
Removal of these items from .profile results in following defaults:
Given that I receive different error responses depending on whether I'm in /bin/sh or bash, I ran the install under both shells, but it had no affect on the result.
Not sure where to go from here... please advise.
Thanks,
Rich
The text was updated successfully, but these errors were encountered: