Can't Install Learnyounode. Various errors received.
I was browsing the NodeSchool website and wanted to install the learnyounode tutorial package. When trying to install, I've tried everything. I've reinstalled NPM and Node. Installed NVM. Changed directories. Nothing seems to be fixing the installation errors I'm receiving.
Now, I've installed other tutorials from the NodeSchool website and they installed and are working completely fine. I'm only having trouble with learnyounode.
Below is the terminal output and error log.
[noly@lenovog ~]$ npm i learnyounode
npm WARN deprecated [email protected]: no longer maintained
npm WARN deprecated [email protected]: no longer maintained
npm WARN checkPermissions Missing write access to /home/noly/node_modules/learnyounode
npm ERR! path /home/noly/node_modules/learnyounode
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/home/noly/node_modules/learnyounode'
npm ERR! { Error: EACCES: permission denied, access '/home/noly/node_modules/learnyounode'
npm ERR! stack: 'Error: EACCES: permission denied, access \'/home/noly/node_modules/learnyounode\'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/home/noly/node_modules/learnyounode' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/noly/.npm/_logs/2018-04-17T14_24_23_918Z-debug.log
[noly@lenovog ~]$ sudo npm i learnyounode
npm ERR! code 128
npm ERR! Command failed: /usr/bin/git clone -q git://github.com/codeclimate/javascript-test-reporter.git /root/.npm/_cacache/tmp/git-clone-d75828e2
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-d75828e2': Permission denied
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-04-17T14_24_32_947Z-debug.log
Note: I have tried installing globally as well with the same results.
Log file of sudo'd command:
0 info it worked if it ends with ok
1 verbose cli [ '/home/noly/.nvm/versions/node/v9.11.1/bin/node',
1 verbose cli '/home/noly/.nvm/versions/node/v9.11.1/bin/npm',
1 verbose cli 'i',
1 verbose cli 'learnyounode' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session dd8c32e4593d9c19
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 304 https://registry.npmjs.org/learnyounode 208ms (from cache)
8 silly pacote tag manifest for learnyounode@latest fetched in 236ms
9 silly install loadIdealTree
10 silly install cloneCurrentTreeToIdealTree
11 silly install loadShrinkwrap
12 silly fetchPackageMetaData error for codeclimate-test-reporter@github:codeclimate/javascript-test-reporter#97f1ff2cf18cd5f03191d3d$
12 silly fetchPackageMetaData fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-d75828e2': Permission$
13 silly saveTree [email protected]
14 verbose stack Error: Command failed: /usr/bin/git clone -q git://github.com/codeclimate/javascript-test-reporter.git /root/.npm/_c$
14 verbose stack fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-d75828e2': Permission denied
14 verbose stack
14 verbose stack at ChildProcess.exithandler (child_process.js:273:12)
14 verbose stack at ChildProcess.emit (events.js:180:13)
14 verbose stack at maybeClose (internal/child_process.js:936:16)
14 verbose stack at Socket.stream.socket.on (internal/child_process.js:353:11)
14 verbose stack at Socket.emit (events.js:180:13)
14 verbose stack at Pipe._handle.close [as _onclose] (net.js:541:12)
15 verbose cwd /home/noly
16 verbose Linux 4.14.34-1-MANJARO
17 verbose argv "/home/noly/.nvm/versions/node/v9.11.1/bin/node" "/home/noly/.nvm/versions/node/v9.11.1/bin/npm" "i" "learnyounode"
18 verbose node v9.11.1
19 verbose npm v5.6.0
20 error code 128
21 error Command failed: /usr/bin/git clone -q git://github.com/codeclimate/javascript-test-reporter.git /root/.npm/_cacache/tmp/git-$
21 error fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-d75828e2': Permission denied
22 verbose exit [ 1, true ]
Log file on non-sudo'd command (this one is yuge and exceeded max post size): https://pastebin.com/5ccMH6hr
- Operating system: Manjaro
- Node Version: Tried 8.11.1 & 9.11.1
- NPM Version: 5.6.0
Posted on Utopian.io - Rewarding Open Source Contributors
Your contribution cannot be approved because similar contribution has already been added on Github (https://github.com/nodeschool/discussions/issues/305)
You need to run as
sudoi.e.sudo npm install learnyounode -gNeed help? Write a ticket on https://support.utopian.io.
Chat with us on Discord.
[utopian-moderator]
Your Post Has Been Featured on @Resteemable!
Feature any Steemit post using resteemit.com!
How It Works:
1. Take Any Steemit URL
2. Erase
https://3. Type
reGet Featured Instantly & Featured Posts are voted every 2.4hrs
Join the Curation Team Here | Vote Resteemable for Witness