npm ERR! path /Users/zhiganov/Documents/projects/my-app/node_modules/styled-components
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/Users/zhiganov/Documents/projects/my-app/node_modules/styled-components'
npm ERR! { [Error: EACCES: permission denied, access '/Users/zhiganov/Documents/projects/my-app/node_modules/styled-components']
npm ERR! stack:
npm ERR! 'Error: EACCES: permission denied, access \'/Users/zhiganov/Documents/projects/my-app/node_modules/styled-components\'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path:
npm ERR! '/Users/zhiganov/Documents/projects/my-app/node_modules/styled-components' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/zhiganov/.npm/_logs/2019-05-01T18_25_29_366Z-debug.log
MacBook-Air-Zhiganov:my-app zhiganov$ sudo chown -R $USER /usr/local/
Password:
chown: /usr/local/: Operation not permittedchown: /usr/local/: Operation not permitted
bash: bash_completion: command not foundAttempted import error: 'styled' is not exported from 'styled-components'.
import styled from 'styled-components';import { styled } from 'styled-components'; // неправильно
The script clones the nvm repository to ~/.nvm and adds the source line to your profile (~/.bash_profile, ~/.zshrc, ~/.profile, or ~/.bashrc).