Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js npm错误!代码ELIFECYCLE npm ERR!第243号_Node.js_React Native_Npm_Npm Install_Npm Start - Fatal编程技术网

Node.js npm错误!代码ELIFECYCLE npm ERR!第243号

Node.js npm错误!代码ELIFECYCLE npm ERR!第243号,node.js,react-native,npm,npm-install,npm-start,Node.js,React Native,Npm,Npm Install,Npm Start,在我的第一个本地项目上工作。“npm安装”似乎工作正常,但当我尝试“npm启动”时,会收到此错误消息 This command requires Expo CLI. Do you want to install it globally [Y/n]? y Installing the package 'expo-cli'... npm ERR! code EACCES npm ERR! syscall access npm ERR! path /usr/local/lib/node_mod

在我的第一个本地项目上工作。“npm安装”似乎工作正常,但当我尝试“npm启动”时,会收到此错误消息

    This command requires Expo CLI.
Do you want to install it globally [Y/n]? y
Installing the package 'expo-cli'...
npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /usr/local/lib/node_modules
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR!  [Error: EACCES: permission denied, access '/usr/local/lib/node_modules'] {
npm ERR!   stack: "Error: EACCES: permission denied, access '/usr/local/lib/node_modules'",
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/local/lib/node_modules'
npm ERR! }
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.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/cameronedwards/.npm/_logs/2020-02-03T21_11_28_565Z-debug.log
Installing Expo CLI failed. You can install it manually with:
  npm install --global expo-cli
npm ERR! code ELIFECYCLE
npm ERR! errno 243
npm ERR! @ start: `expo start`
npm ERR! Exit status 243
npm ERR! 
npm ERR! Failed at the @ start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/cameronedwards/.npm/_logs/2020-02-03T21_11_28_613Z-debug.log

这是我第一次遇到堆栈溢出,如果格式/措辞奇怪,我深表歉意。

你的
package.json
文件是什么样子的?这可能太多了,但这里有大约十分之一的文件编辑你的原始帖子并粘贴到那里-官方文档应该解释如何解决你的问题-你的想法是什么
package.json
文件看起来像什么?这可能太多了,但这里有大约十分之一的文件编辑您的原始帖子并粘贴到那里-官方文档应该解释如何解决您的问题-