nodejs v6.2.0 not work
install nodejs v.6.2.0 with nvm, when run npm it report
Error: Unknown system error -25: Unknown system error -25, open '/usr/local/lib/node_modules/npm/bin/npm-cli.js'
at Error (native)
at Object.fs.openSync (fs.js:549:18)
at Object.fs.readFileSync (fs.js:397:15)
at Object.Module._extensions..js (module.js:415:20)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:139:18)
at node.js:968:3
We have a number of tty changes inbound which may unblock this (-25 is ENOTTY). Are you running a specific npm command that I can try to make sure this is resolved?
I tried this locally and was able to use npm 3.8.9 (npm version included in node 6.2.0) to install grunt. Let me know if you have a more specific repro you'd like me to use, thanks!
C:\Users\KernelTest\AppData\Local\lxss>bash ~
root@BENHILL-VM7:~# curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.1/install.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7766 100 7766 0 0 19057 0 --:--:-- --:--:-- --:--:-- 20436
=> Downloading nvm from git to '/root/.nvm'
=> Cloning into '/root/.nvm'...
remote: Counting objects: 4703, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 4703 (delta 0), reused 0 (delta 0), pack-reused 4699
Receiving objects: 100% (4703/4703), 1.23 MiB | 785.00 KiB/s, done.
Resolving deltas: 100% (2793/2793), done.
Checking connectivity... done.
* (detached from v0.31.1)
master
=> Appending source string to /root/.bashrc
=> Close and reopen your terminal to start using nvm
root@BENHILL-VM7:~# exit
exit
C:\Users\KernelTest\AppData\Local\lxss>bash ~
root@BENHILL-VM7:~# nvm install 6.2.0
Downloading https://nodejs.org/dist/v6.2.0/node-v6.2.0-linux-x64.tar.xz...
######################################################################## 100.0%
Now using node v6.2.0 (npm v3.8.9)
Creating default alias: default -> 6.2.0 (-> v6.2.0)
root@BENHILL-VM7:~# npm
Usage: npm <command>
where <command> is one of:
access, adduser, bin, bugs, c, cache, completion, config,
ddp, dedupe, deprecate, dist-tag, docs, edit, explore, get,
help, help-search, i, init, install, install-test, it, link,
list, ln, logout, ls, outdated, owner, pack, ping, prefix,
prune, publish, rb, rebuild, repo, restart, root, run,
run-script, s, se, search, set, shrinkwrap, star, stars,
start, stop, t, tag, team, test, tst, un, uninstall,
unpublish, unstar, up, update, v, version, view, whoami
npm <cmd> -h quick help on <cmd>
npm -l display full usage info
npm help <term> search for help on <term>
npm help npm involved overview
Specify configs in the ini-formatted file:
/root/.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config
[email protected] /root/.nvm/versions/node/v6.2.0/lib/node_modules/npm
root@BENHILL-VM7:~# npm install grunt
/root
└─┬ [email protected]
├── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ └─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ └─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ └─┬ [email protected]
│ │ │ └── [email protected]
│ │ └─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├── [email protected]
│ │ │ └─┬ [email protected]
│ │ │ └── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ └─┬ [email protected]
│ │ │ └─┬ [email protected]
│ │ │ └── [email protected]
│ │ └── [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
└── [email protected]
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.
root@BENHILL-VM7:~# npm -v
3.8.9
root@BENHILL-VM7:~# node -v
v6.2.0
root@BENHILL-VM7:~#
Also eagerly awaiting a fix for this. When can we likely expect it?
@benhillis
under windows build 14352
nvm install v6.2.0
Downloading https://nodejs.org/dist/v6.2.0/node-v6.2.0-linux-x64.tar.xz...
######################################################################## 100.0%
WARNING: checksums are currently disabled for node.js v4.0 and later
fs.js:634
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: Unknown system error -25: Unknown system error -25, open '/home/webmaster/.nvm/versions/node/v6.2.0/lib/node_modules/npm/bin/npm-cli.js'
at Error (native)
at Object.fs.openSync (fs.js:634:18)
at Object.fs.readFileSync (fs.js:502:33)
at Object.Module._extensions..js (module.js:549:20)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Function.Module.runMain (module.js:575:10)
at startup (node.js:160:18)
at node.js:449:3
nvm is not compatible with the npm config "prefix" option: currently set to ""
Run `npm config delete prefix` or `nvm use --delete-prefix v6.2.0` to unset it.
There is some tty work in the build I was running above. Those changes will be in an Insider build soon.
@benhillis
got it, look forward the Windows 10 Anniversary Update
@benhillis's fix is in build 14361.