Skip to content

couldn't not create new app getting issue like below #20548

Closed
@lavarajallu

Description

react-native : 0.56,
react-native cli- 2.0.1,
node -v : v8.11.3

This will walk you through creating a new React Native project in /Users/apple/Desktop/Kalyanajathakam
Installing react-native...
Consider installing yarn to make this faster: https://yarnpkg.com
npm ERR! path /Users/apple/.npm/_cacache/index-v5/c8/14
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall mkdir
npm ERR! Error: EACCES: permission denied, mkdir '/Users/apple/.npm/_cacache/index-v5/c8/14'
npm ERR!  { Error: EACCES: permission denied, mkdir '/Users/apple/.npm/_cacache/index-v5/c8/14'
npm ERR!   cause: 
npm ERR!    { Error: EACCES: permission denied, mkdir '/Users/apple/.npm/_cacache/index-v5/c8/14'
npm ERR!      errno: -13,
npm ERR!      code: 'EACCES',
npm ERR!      syscall: 'mkdir',
npm ERR!      path: '/Users/apple/.npm/_cacache/index-v5/c8/14' },
npm ERR!   isOperational: true,
npm ERR!   stack: 'Error: EACCES: permission denied, mkdir \'/Users/apple/.npm/_cacache/index-v5/c8/14\'',
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'mkdir',
npm ERR!   path: '/Users/apple/.npm/_cacache/index-v5/c8/14',
npm ERR!   parent: 'metro' }
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!     /Users/apple/.npm/_logs/2018-08-06T16_17_37_663Z-debug.log
{ Error: Command failed: npm install --save --save-exact react-native
    at checkExecSyncError (child_process.js:601:13)
    at execSync (child_process.js:641:13)
    at run (/usr/local/lib/node_modules/react-native-cli/index.js:294:5)
    at createProject (/usr/local/lib/node_modules/react-native-cli/index.js:249:3)
    at /usr/local/lib/node_modules/react-native-cli/index.js:217:7
    at /usr/local/lib/node_modules/react-native-cli/node_modules/prompt/lib/prompt.js:316:32
    at /usr/local/lib/node_modules/react-native-cli/node_modules/async/lib/async.js:142:25
    at assembler (/usr/local/lib/node_modules/react-native-cli/node_modules/prompt/lib/prompt.js:313:9)
    at /usr/local/lib/node_modules/react-native-cli/node_modules/prompt/lib/prompt.js:322:32
    at /usr/local/lib/node_modules/react-native-cli/node_modules/prompt/lib/prompt.js:597:5
  error: null,
  cmd: 'npm install --save --save-exact react-native',
  file: '/bin/sh',
  args: 
   [ '/bin/sh',
     '-c',
     'npm install --save --save-exact react-native' ],
  options: 
   { stdio: [ [Object], [Object], [Object] ],
     shell: true,
     file: '/bin/sh',
     args: 
      [ '/bin/sh',
        '-c',
        'npm install --save --save-exact react-native' ],
     envPairs: 
      [ 'TERM_PROGRAM=Apple_Terminal',
        'SHELL=/bin/bash',
        'TERM=xterm-256color',
        'TMPDIR=/var/folders/3g/5h2jdkhn65n5v9xrfrnrzpch0000gn/T/',
        'Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.KJumpTryiq/Render',
        'TERM_PROGRAM_VERSION=404',
        'OLDPWD=/Users/apple',
        'TERM_SESSION_ID=D0C3B953-1CFC-4985-B27C-3D30CB15C6D5',
        'USER=apple',
        'SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.6oHHDdIFUh/Listeners',
        'PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin',
        'PWD=/Users/apple/Desktop',
        'XPC_FLAGS=0x0',
        'XPC_SERVICE_NAME=0',
        'SHLVL=1',
        'HOME=/Users/apple',
        'LOGNAME=apple',
        'LC_CTYPE=UTF-8',
        'SECURITYSESSIONID=186a8',
        '_=/usr/local/bin/react-native',
        '__CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0' ],
     killSignal: undefined },
  envPairs: 
   [ 'TERM_PROGRAM=Apple_Terminal',
     'SHELL=/bin/bash',
     'TERM=xterm-256color',
     'TMPDIR=/var/folders/3g/5h2jdkhn65n5v9xrfrnrzpch0000gn/T/',
     'Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.KJumpTryiq/Render',
     'TERM_PROGRAM_VERSION=404',
     'OLDPWD=/Users/apple',
     'TERM_SESSION_ID=D0C3B953-1CFC-4985-B27C-3D30CB15C6D5',
     'USER=apple',
     'SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.6oHHDdIFUh/Listeners',
     'PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin',
     'PWD=/Users/apple/Desktop',
     'XPC_FLAGS=0x0',
     'XPC_SERVICE_NAME=0',
     'SHLVL=1',
     'HOME=/Users/apple',
     'LOGNAME=apple',
     'LC_CTYPE=UTF-8',
     'SECURITYSESSIONID=186a8',
     '_=/usr/local/bin/react-native',
     '__CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0' ],
  stderr: null,
  stdout: null,
  pid: 773,
  output: [ null, null, null ],
  signal: null,
  status: 243 }
Command `npm install --save --save-exact react-native` failed.
Apples-MacBook-Pro-3:Desktop apple$ 

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions