npm ERR!代码ELIFECYCLE npm ERR!埃尔诺243

时间:2020-02-03 21:19:24

标签: node.js react-native npm npm-install npm-start

从事我的第一个本地反应项目。 “ npm install”似乎可以正常工作,但是当我尝试“ npm start”时,会收到此错误消息。

    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

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

0 个答案:

没有答案