Как решить "Ошибка сборки с кодом ошибки: 1" при запуске ionic? - PullRequest
0 голосов
/ 23 декабря 2018

При создании ионного проекта возникают следующие ошибки:

gyp ERR! configure error 
gyp ERR! stack Error: EACCES: permission denied, mkdir '/Users/fernandolucio/tesfff/node_modules/node-sass/build'
gyp ERR! System Darwin 17.7.0
gyp ERR! command "/usr/local/bin/node" "/Users/fernandolucio/tesfff/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/fernandolucio/tesfff/node_modules/node-sass
gyp ERR! node -v v10.14.2
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
Build failed with error code: 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.11.0 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the node-sass@4.11.0 postinstall 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/fernandolucio/.npm/_logs/2018-12-23T00_18_35_148Z-debug.log
[ERROR] An error occurred while running subprocess npm.

    npm i exited with exit code 1.

    Re-running this command with the --verbose flag may provide more 
    information.

Как можно устранить эти ошибки?Я использую:

  • ионная версия 4.6.0
  • версия узла 10.14.2
  • npm версия 6.5.0
...