ОШИБКА Произошла ошибка при запуске подпроцесса npm - PullRequest
0 голосов
/ 23 октября 2018

Я установил все пакеты, необходимые для работы с Ionic.Я использую Linux и версии:

Ionic:

  • ionic (Ionic CLI): 4.2.1 (/ usr / lib / node_modules / ionic)
  • Ionic Framework: ионно-угловой 3.9.2
  • @ ionic / app-scripts: не установлен
  • 8.1.2 (cordova-lib@8.1.1)

Система:

  • NodeJS: v10.12.0 (/ usr / bin / node)
  • npm: 6.4.1
  • ОС: Linux 4.15

Вот ошибки:

Building: /usr/bin/node /home/informatika/appIonic/primero/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ '/usr/bin/node',
gyp verb cli   '/home/informatika/appIonic/primero/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli   'rebuild',
gyp verb cli   '--verbose',
gyp verb cli   '--libsass_ext=',
gyp verb cli   '--libsass_cflags=',
gyp verb cli   '--libsass_ldflags=',
gyp verb cli   '--libsass_library=' ]
gyp info using node-gyp@3.8.0
gyp info using node@10.12.0 | linux | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` succeeded python2 /usr/bin/python2
gyp verb check python version `/usr/bin/python2 -c "import sys; print "2.7.15
gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j
gyp verb get node dir no --target version specified, falling back to host node version: 10.12.0
gyp verb command install [ '10.12.0' ]
gyp verb install input version string "10.12.0"
gyp verb install installing version: 10.12.0
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/10.12.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/informatika/appIonic/primero/node_modules/node-sass/.node-gyp"
gyp verb tmpdir == cwd automatically will remove dev files after to save disk space
gyp verb command install [ '--node_gyp_internal_noretry', '10.12.0' ]
gyp verb install input version string "10.12.0"
gyp verb install installing version: 10.12.0
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version not already installed, continuing with install 10.12.0
gyp verb ensuring nodedir is created /home/informatika/appIonic/primero/node_modules/node-sass/.node-gyp/10.12.0
gyp WARN install got an error, rolling back install
gyp verb command remove [ '10.12.0' ]
gyp verb remove using node-gyp dir: /home/informatika/appIonic/primero/node_modules/node-sass/.node-gyp
gyp verb remove removing target version: 10.12.0
gyp verb remove removing development files for version: 10.12.0
gyp WARN install got an error, rolling back install
gyp verb command remove [ '10.12.0' ]
gyp verb remove using node-gyp dir: /home/informatika/appIonic/primero/node_modules/node-sass/.node-gyp
gyp verb remove removing target version: 10.12.0
gyp verb remove removing development files for version: 10.12.0
gyp ERR! configure error 
gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/informatika/appIonic/primero/node_modules/node-sass/.node-gyp'
gyp ERR! System Linux 4.15.0-38-generic
gyp ERR! command "/usr/bin/node" "/home/informatika/appIonic/primero/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /home/informatika/appIonic/primero/node_modules/node-sass
gyp ERR! node -v v10.12.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.9.0 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the node-sass@4.9.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!     /root/.npm/_logs/2018-10-23T13_41_07_197Z-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.
root@informatika-P552LA:/home/informatika/appIonic# 
...