Open askfongjojo opened 7 years ago
The Manta CLI does not install with Node v8.1 on SmartOS or LX but installs and works with Node.js v8.1 on MacOS and CentOS 7 KVM.
[root@14960b24-efba-e70f-cfb5-e31b7eeda2fe ~]# node --version v8.1.3 [root@14960b24-efba-e70f-cfb5-e31b7eeda2fe ~]# npm --version 5.0.3 [root@14960b24-efba-e70f-cfb5-e31b7eeda2fe ~]# export V=1 [root@14960b24-efba-e70f-cfb5-e31b7eeda2fe ~]# npm install manta npm WARN deprecated node-uuid@1.4.8: Use uuid module instead npm WARN enoent ENOENT: no such file or directory, open '/root/package.json' npm WARN root No description npm WARN root No repository field. npm WARN root No README data npm WARN root No license field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: lodash@4.17.4 (node_modules/lodash): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, utime '/root/node_modules/.staging/lodash-c3c144be/bindAll.js' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: glob@6.0.4 (node_modules/glob): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, chown '/root/node_modules/.staging/glob-6dc5bea5/package.json' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fstream@1.0.11 (node_modules/fstream): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/root/node_modules/.staging/fstream-5de9208b/.npmignore' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: rimraf@2.4.5 (node_modules/rimraf): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: EEXIST: file already exists, mkdir '/root/node_modules/.staging/rimraf-7d0206b9' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: File exists: /root/node_modules/.staging/rimraf-7d0206b9 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: lru-cache@4.1.1 (node_modules/lru-cache): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: EEXIST: file already exists, mkdir '/root/node_modules/.staging/lru-cache-e9465329' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: File exists: /root/node_modules/.staging/lru-cache-e9465329 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: dtrace-provider@0.7.1 (node_modules/restify-clients/node_modules/dtrace-provider): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/root/node_modules/.staging/dtrace-provider-8776306d/dtrace_argument.cc' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: y18n@3.2.1 (node_modules/y18n): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/root/node_modules/.staging/y18n-42599b65/LICENSE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: yallist@2.1.2 (node_modules/yallist): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/root/node_modules/.staging/yallist-d721f5ac/LICENSE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: minimist@0.0.8 (node_modules/minimist): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, utime '/root/node_modules/.staging/minimist-eca9f92c/test/dotted.js' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ecc-jsbn@0.1.1 (node_modules/ecc-jsbn): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, utime '/root/node_modules/.staging/ecc-jsbn-f00c6887/lib/LICENSE-jsbn' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: backoff@2.5.0 (node_modules/restify-clients/node_modules/backoff): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, chmod '/root/node_modules/.staging/backoff-e71ec920/lib/strategy/fibonacci.js' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: asn1@0.2.3 (node_modules/asn1): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, utime '/root/node_modules/.staging/asn1-2b2927b1/lib/ber/reader.js' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: mv@2.1.1 (node_modules/mv): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, utime '/root/node_modules/.staging/mv-95d97ba9/index.js' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: smartdc-auth@2.5.5 (node_modules/smartdc-auth): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, chmod '/root/node_modules/.staging/smartdc-auth-8d21dc96/lib/errors.js' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: tar@2.2.1 (node_modules/tar): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/root/node_modules/.staging/tar-e2923e52/examples/reader.js' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: nan@2.6.2 (node_modules/nan): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, chmod '/root/node_modules/.staging/nan-0950aba3/doc/maybe_types.md' npm ERR! path /root/node_modules/.staging/mime-2e3a1fce/README.md npm ERR! code EINVAL npm ERR! errno -22 npm ERR! syscall chown npm ERR! EINVAL: invalid argument, chown '/root/node_modules/.staging/mime-2e3a1fce/README.md' npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2017-07-10T02_11_22_835Z-debug.log
Here are the pertinent parts in the debug log:
193 verbose stack Error: EINVAL: invalid argument, chown '/usr/local/lib/node_modules/.staging/mime-feefcdcc/README.md' 2194 verbose cwd /root 2195 verbose SunOS 5.11 2196 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "manta" "-g" 2197 verbose node v8.1.4 2198 verbose npm v5.0.3 2199 error path /usr/local/lib/node_modules/.staging/mime-feefcdcc/README.md 2200 error code EINVAL 2201 error errno -22 2202 error syscall chown 2203 error EINVAL: invalid argument, chown '/usr/local/lib/node_modules/.staging/mime-feefcdcc/README.md' 2204 verbose exit [ -22, true ]
The Manta CLI does not install with Node v8.1 on SmartOS or LX but installs and works with Node.js v8.1 on MacOS and CentOS 7 KVM.
Here are the pertinent parts in the debug log: