Gyp err stack error eacces permission denied rmdir build

Failed at the x509@0.3.2 install script ‘node-gyp rebuild’ #49 Comments My machine settings: Windows 10 npm -v // 4.5.0 node -v // 6.10.0 ‘npm install x509’ fail to complete with the error: LINK : fatal error LNK1181: cannot open input file ‘C:OpenSSL-Win64liblibeay32.lib’ [C:gittestnode_modulesx509b uildx509.vcxproj] Failed at the x509@0.3.2 install script ‘node-gyp rebuild’. The text […]

Содержание

  1. Failed at the x509@0.3.2 install script ‘node-gyp rebuild’ #49
  2. Comments
  3. Error:
  4. npm rebuild, Elastic Beanstalk and permissions
  5. The Problem
  6. The Solution
  7. install sqlite3 error with electron #938
  8. Comments

Failed at the x509@0.3.2 install script ‘node-gyp rebuild’ #49

My machine settings:
Windows 10
npm -v // 4.5.0
node -v // 6.10.0

‘npm install x509’ fail to complete with the error:

LINK : fatal error LNK1181: cannot open input file ‘C:OpenSSL-Win64liblibeay32.lib’ [C:gittestnode_modulesx509b
uildx509.vcxproj]

Failed at the x509@0.3.2 install script ‘node-gyp rebuild’.

The text was updated successfully, but these errors were encountered:

I am facing same issue. Any progress on this?

Sorry guys. Just changed jobs not too long ago and haven’t had much time to keep up with this.

As for this error, I can’t really say since I don’t have a Windows computer to test the compilation with. Do you have OpenSSL installed to C:OpenSSL-Win64 ?

Getting the same issue on Linux Docker

That OpenSSL-Win64 path comes from the 28th line of the binding.,gyp. That sucks, and makes this (and everything depending on this) unusable on Windows.

Edit: ah, sorry about being snarky, now I see where that path is coming from. A notice in the Readme would be appreciated, though.

For anyone looking for a solution, see: https://stackoverflow.com/a/39270114/477453
That is, get OpenSSL for Windows, version 1.0.2, from http://slproweb.com/products/Win32OpenSSL.html , and install it in the directory the installer suggests. And that’s it, it will compile correctly, woooo.

Am getting the same on CentOS 7.3
[root@centos7

]# npm install -g x509

x509@0.3.2 install /usr/lib/node_modules/x509
node-gyp rebuild

gyp ERR! clean error
gyp ERR! stack Error: EACCES: permission denied, rmdir ‘build’
gyp ERR! stack at Error (native)
gyp ERR! System Linux 3.10.0-514.26.2.el7.x86_64
gyp ERR! command «/usr/bin/node» «/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js» «rebuild»
gyp ERR! cwd /usr/lib/node_modules/x509
gyp ERR! node -v v6.11.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! x509@0.3.2 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the x509@0.3.2 install 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/2017-07-19T16_15_49_944Z-debug.log
[root@centos7

@Botffy no problem (re: snark). Mind opening a PR to modify the README since you have a Windows machine and know the steps that you had to take to get it working?

@bertrandszoghy your problem is a permission issue on your CentOS system. Check the output that you sent and you can see gyp ERR! stack Error: EACCES: permission denied, rmdir ‘build’ . You would need to file a node-gyp issue for that.

@oreporan you can’t be having this same Windows issue on a Linux container. What is the actual issue that you’re running into?

@kalpeshshirodker do you have OpenSSL installed to C:OpenSSL-Win64 ?

@bertrandszoghy no problem. I would still file an issue with node-gyp. Seeing as how you were doing the install as root, there should be no reason for you to be denied removing a directory. Something is definitely off there.

I’m getting a similar error on Debian.
I have been using this package on Centos with an early version of node. It works great.
I’m trying to upgrade my system and your latest packages don’t work to install.

I’ve followed instructions use this:
npm install -g node-gyp
npm install

With the latest version of node for the package I was using x509@0.2.4 and x509@0.3.2 it doesn’t work to install.

Can you please fix this build issue, or supply the configuration you are using to test your current x509 package, or supply work around instructions?

Thank you in advance.

Error:

x509@0.3.2 install /opt/nodetest/node_modules/x509
node-gyp rebuild

Источник

npm rebuild, Elastic Beanstalk and permissions

While working on a node package recently I stumbled upon a rather difficult to debug permission error that occurred during the npm install step of my deployment.

Some background on my setup:
node 8.11.1
Elastic Beanstalk application
depends on eth-crypto npm package

As you may know if you deploy to EB using the eb-cli, you simply type eb deploy to initiate a deployment. Everything was working fine until I added a package dependency for eth-crypto . This is when I started seeing a permission error like the following:

[Application update app-5342–180521_123239@32/AppDeployStage0/AppDeployPreHook/50npm.sh] : Activity execution failed, because: + /opt/elasticbeanstalk/containerfiles/ebnode.py — action npm-install

And further down in the log:

gyp ERR! stack Error: EACCES: permission denied, rmdir ‘build’

Note: Locate your logs in EB by first navigating to your app, click Logs on the left menu, then click Request Logs drop down on right, and choose “Last 100 Lines”. All of the relevant logs relating to a deployment will be in the eb-activity section.

The Problem

It turns out that eth-crypto has binary dependencies that need to be recompiled when installed on a new machine. This is facilitated by npm rebuild —production which is run as part of the deployment process. Read more about npm rebuild here. The problem is that EB starts by creating a copy of the code to deploy under /tmp/deployment/application (and later moves to /var/app/current ), and these files are owned by root in the temp folder. The process doing the deployment is running under ec2-user , however. As a result of the files being owned by root, the ec2-user cannot perform the npm rebuild command.

The Solution

Change ownership of the files in the /tmp folder to ec2-user. This is done using a little known feature of Elastic Beanstalk called Platform Hooks. The hook you will need to leverage in this instance is the appdeploy/pre hook. If you do not already have a .ebextensions folder in the root of your project, create it. Then create a file in .ebextensions named 01_fix_permissions.config. EB knows to run files in the .ebextensions folder at the beginning of the deployment in order, which is why the “01” prefix is used. Inside this file enter the following:

Lets break this down:
— “files” tells EB that we are going to define one or more files that we want to create at the beginning of the deployment
— Next is the path to the file to create. As I mentioned, we want to create a hook in the “appdeploy” section of deployment, in the “pre” step. There is a “pre” and “post” folder that you can create files in. In our case we want to fix permissions before (pre deployment) deployment is complete.
— The file is named 49_change_permissions.sh. Why? Because we want permissions to be fixed right before a file named 50npm.sh in the same directory is run. 50npm.sh is a standard file with EB and runs npm install which in turn may run npm rebuild .
— “content” is the physical content of the file to create. We want this to be executed by bash, and finally we chown the tmp folder recursively by ec2-user .

Note that if you decide to remove a file created from the .ebextensions folder you will need to manually ssh into the EB instance, navigate to the pre folder and remove the files. EB does, on the other hand, update your files if you make a change in .ebextensions.

Hope this saves someone time debugging this issue!

Источник

install sqlite3 error with electron #938

Execute the following command on my Mac.
sudo npm install sqlite3@3.1.8 —build-from-source —sqlite_libname=sqlcipher —sqlite= brew —prefix —runtime=electron —target=1.7.6 —dist-url=https://atom.io/download/electron

sudo npm install sqlite3@3.1.8 —build-from-source —sqlite_libname=sqlcipher —sqlite= brew —prefix —runtime=electron —target=1.7.6 —dist-url=https://atom.io/download/electron
Password:

fsevents@1.1.3 install /Users/yumingliang/Documents/project/dev/Electron-React/burshOrder/node_modules/fsevents
node install

gyp ERR! clean error
gyp ERR! stack Error: EACCES: permission denied, rmdir ‘build’
gyp ERR! stack at Error (native)
gyp ERR! System Darwin 16.7.0
gyp ERR! command «/usr/local/bin/node» «/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js» «clean»
gyp ERR! cwd /Users/yumingliang/Documents/project/dev/Electron-React/burshOrder/node_modules/fsevents
gyp ERR! node -v v6.11.4
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute ‘/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js clean’ (1)
node-pre-gyp ERR! stack at ChildProcess. (/Users/yumingliang/Documents/project/dev/Electron-React/burshOrder/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:920:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)
node-pre-gyp ERR! System Darwin 16.7.0
node-pre-gyp ERR! command «/usr/local/bin/node» «/Users/yumingliang/Documents/project/dev/Electron-React/burshOrder/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp» «install» «—fallback-to-build»
node-pre-gyp ERR! cwd /Users/yumingliang/Documents/project/dev/Electron-React/burshOrder/node_modules/fsevents
node-pre-gyp ERR! node -v v6.11.4
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
Failed to execute ‘/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js clean’ (1)

node-sass@4.7.2 install /Users/yumingliang/Documents/project/dev/Electron-React/burshOrder/node_modules/node-sass
node scripts/install.js

Unable to save binary /Users/yumingliang/Documents/project/dev/Electron-React/burshOrder/node_modules/node-sass/vendor/darwin-x64-48 : < Error: EACCES: permission denied, mkdir ‘/Users/yumingliang/Documents/project/dev/Electron-React/burshOrder/node_modules/node-sass/vendor’
at Error (native)
at Object.fs.mkdirSync (fs.js:924:18)
at sync (/Users/yumingliang/Documents/project/dev/Electron-React/burshOrder/node_modules/mkdirp/index.js:71:13)
at Function.sync (/Users/yumingliang/Documents/project/dev/Electron-React/burshOrder/node_modules/mkdirp/index.js:77:24)
at checkAndDownloadBinary (/Users/yumingliang/Documents/project/dev/Electron-React/burshOrder/node_modules/node-sass/scripts/install.js:111:11)
at Object. (/Users/yumingliang/Documents/project/dev/Electron-React/burshOrder/node_modules/node-sass/scripts/install.js:154:1)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
errno: -13,
code: ‘EACCES’,
syscall: ‘mkdir’,
path: ‘/Users/yumingliang/Documents/project/dev/Electron-React/burshOrder/node_modules/node-sass/vendor’ >

sqlite3@3.1.8 install /Users/yumingliang/Documents/project/dev/Electron-React/burshOrder/node_modules/sqlite3
node-pre-gyp install —fallback-to-build

node-pre-gyp info it worked if it ends with ok
node-pre-gyp verb cli [ ‘/usr/local/bin/node’,
node-pre-gyp verb cli ‘/Users/yumingliang/Documents/project/dev/Electron-React/burshOrder/node_modules/sqlite3/node_modules/.bin/node-pre-gyp’,
node-pre-gyp verb cli ‘install’,
node-pre-gyp verb cli ‘—fallback-to-build’ ]
node-pre-gyp info using node-pre-gyp@0.6.31
node-pre-gyp info using node@6.11.4 | darwin | x64
node-pre-gyp verb command install []
node-pre-gyp info build requesting source compile
node-pre-gyp verb command build [ ‘rebuild’ ]
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir ‘/Users/yumingliang/Documents/project/dev/Electron-React/burshOrder/node_modules/sqlite3/build’
gyp ERR! stack at Error (native)
gyp ERR! System Darwin 16.7.0
gyp ERR! command «/usr/local/bin/node» «/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js» «configure» «—fallback-to-build» «—module=/Users/yumingliang/Documents/project/dev/Electron-React/burshOrder/node_modules/sqlite3/lib/binding/electron-v1.7-darwin-x64/node_sqlite3.node» «—module_name=node_sqlite3» «—module_path=/Users/yumingliang/Documents/project/dev/Electron-React/burshOrder/node_modules/sqlite3/lib/binding/electron-v1.7-darwin-x64» «—dist-url=https://atom.io/download/electron»
gyp ERR! cwd /Users/yumingliang/Documents/project/dev/Electron-React/burshOrder/node_modules/sqlite3
gyp ERR! node -v v6.11.4
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute ‘/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure —fallback-to-build —module=/Users/yumingliang/Documents/project/dev/Electron-React/burshOrder/node_modules/sqlite3/lib/binding/electron-v1.7-darwin-x64/node_sqlite3.node —module_name=node_sqlite3 —module_path=/Users/yumingliang/Documents/project/dev/Electron-React/burshOrder/node_modules/sqlite3/lib/binding/electron-v1.7-darwin-x64 —dist-url=https://atom.io/download/electron’ (1)
node-pre-gyp ERR! stack at ChildProcess. (/Users/yumingliang/Documents/project/dev/Electron-React/burshOrder/node_modules/sqlite3/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:920:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)
node-pre-gyp ERR! System Darwin 16.7.0
node-pre-gyp ERR! command «/usr/local/bin/node» «/Users/yumingliang/Documents/project/dev/Electron-React/burshOrder/node_modules/sqlite3/node_modules/.bin/node-pre-gyp» «install» «—fallback-to-build»
node-pre-gyp ERR! cwd /Users/yumingliang/Documents/project/dev/Electron-React/burshOrder/node_modules/sqlite3
node-pre-gyp ERR! node -v v6.11.4
node-pre-gyp ERR! node-pre-gyp -v v0.6.31
node-pre-gyp ERR! not ok
Failed to execute ‘/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure —fallback-to-build —module=/Users/yumingliang/Documents/project/dev/Electron-React/burshOrder/node_modules/sqlite3/lib/binding/electron-v1.7-darwin-x64/node_sqlite3.node —module_name=node_sqlite3 —module_path=/Users/yumingliang/Documents/project/dev/Electron-React/burshOrder/node_modules/sqlite3/lib/binding/electron-v1.7-darwin-x64 —dist-url=https://atom.io/download/electron’ (1)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-linux@1.3.1 (node_modules/7zip-bin-linux):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 7zip-bin-linux@1.3.1: wanted <«os»:»linux»,»arch»:»any»>(current: <«os»:»darwin»,»arch»:»x64″>)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-win@2.1.1 (node_modules/7zip-bin-win):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 7zip-bin-win@2.1.1: wanted <«os»:»win32″,»arch»:»any»>(current: <«os»:»darwin»,»arch»:»x64″>)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 install: node install
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sqlite3@3.1.8 install: node-pre-gyp install —fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sqlite3@3.1.8 install 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/yumingliang/.npm/_logs/2018-01-29T07_19_30_303Z-debug.log

The text was updated successfully, but these errors were encountered:

Источник

Slide 1

Most trusted JOB oriented professional program

DevOps Certified Professional (DCP)

Take your first step into the world of DevOps with this course, which will help you to learn about the methodologies and tools used to develop, deploy, and operate high-quality software.

Slide 2

DevOps to DevSecOps – Learn the evolution

DevSecOps Certified Professional (DSOCP)

Learn to automate security into a fast-paced DevOps environment using various open-source tools and scripts.

Slide 2

Get certified in the new tech skill to rule the industry

Site Reliability Engineering (SRE) Certified Professional

A method of measuring and achieving reliability through engineering and operations work – developed by Google to manage services.

Slide 2

Master in DevOps Engineering (MDE)

Get enrolled for the most advanced and only course in the WORLD which can make you an expert and proficient Architect in DevOps, DevSecOps and Site Reliability Engineering (SRE) principles together.

Slide 2

Gain expertise and certified yourself

Azure DevOps Solutions Expert

Learn about the DevOps services available on Azure and how you can use them to make your workflow more efficient.

Slide 3

AWS Certified DevOps Professional

Learn about the DevOps services offered by AWS and how you can use them to make your workflow more efficient.

previous arrow

next arrow

npm install [Tried using root]
sudo npm install [Tried using ubuntu]

Error

gyp verb build dir attempting to create "build" dir: /opt/lampp/htdocs/surgery-planet-repo/node_modules/node-sass/build
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/opt/lampp/htdocs/surgery-planet-repo/node_modules/node-sass/build'
gyp ERR! System Linux 4.15.0-1044-aws
gyp ERR! command "/usr/bin/node" "/opt/lampp/htdocs/surgery-planet-repo/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /opt/lampp/htdocs/surgery-planet-repo/node_modules/node-sass
gyp ERR! node -v v13.6.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN ajv-keywords@3.4.1 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.13.1 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.13.1 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!     /home/ubuntu/.npm/_logs/2020-01-21T06_46_52_290Z-debug.log

Solutions

First Solution 1

$ sudo npm i –unsafe-perm

Last Solution 2
$ sudo rm -rf ~/.node-gyp
$ sudo npm cache clean -f
$ sudo npm install -g n
$ sudo n stable
$ sudo npm i -unsafe-perm

  • Author
  • Recent Posts

Rajesh Kumar

Mentor for DevOps — DevSecOps — SRE — Cloud — Container & Micorservices at Cotocus

Join my following certification courses…
— DevOps Certified Professionals (DCP)
— Site Reliability Engineering Certified Professionals (SRECP)
— Master in DevOps Engineering (MDE)
— DevSecOps Certified Professionals (DSOCP)
URL — https://www.devopsschool.com/certification/

My Linkedin — https://www.linkedin.com/in/rajeshkumarin
My Email — contact@DevOpsSchool.com

Rajesh Kumar

I am using Mac OS 10.13.6 and I have been having write issues when trying to install Angular and I don’t know what’s wrong.

I tried to delete the node_modules folder in the lib directory and reinstalled Node 11.2 thinking it was just some permissions issue and blowing the folder away would re-establish the permissions… but it didn’t help

I am an admin on my mac and I tried with and without sudo. Here are the errors I am getting in terminal when I run «sudo npm install -g @angular/cli»

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules npm ERR! path /usr/local/lib/node_modules npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall access 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: npm ERR! «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! 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 (though this is not recommended).

npm ERR! A complete log of this run can be found in: npm ERR! /Users/shawn/.npm/_logs/2018-11-23T19_12_37_735Z-debug.log Shawns-MacBook:~ shawn$ sudo npm install -g @angular/cli Password: /usr/local/bin/ng -> /usr/local/lib/node_modules/@angular/cli/bin/ng

fsevents@1.2.4 install /usr/local/lib/node_modules/@angular/cli/node_modules/fsevents node install

node-pre-gyp WARN Pre-built binaries not installable for fsevents@1.2.4 and node@11.2.0 (node-v67 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp WARN Hit error EACCES: permission denied, mkdir ‘/usr/local/lib/node_modules/@angular/cli/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64’ gyp ERR! clean error gyp ERR! stack Error: EACCES: permission denied, rmdir ‘build’ gyp ERR! System Darwin 17.7.0 gyp ERR! command «/usr/local/bin/node» «/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js» «clean» gyp ERR! cwd /usr/local/lib/node_modules/@angular/cli/node_modules/fsevents gyp ERR! node -v v11.2.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute ‘/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js clean’ (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/@angular/cli/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:978:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5) node-pre-gyp ERR! System Darwin 17.7.0 node-pre-gyp ERR! command «/usr/local/bin/node» «/usr/local/lib/node_modules/@angular/cli/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp» «install» «—fallback-to-build» node-pre-gyp ERR! cwd /usr/local/lib/node_modules/@angular/cli/node_modules/fsevents node-pre-gyp ERR! node -v v11.2.0 node-pre-gyp ERR! node-pre-gyp -v v0.10.0 node-pre-gyp ERR! not ok

I have this error when i try to update my meteor project from Meteor 1.3.5.1 to METEOR 1.4. I don’t know why i have this error. I have already try to do a chown to .meteor and .np floder.

 => Errors while initializing project:         

    While loading package [email protected]:
    error: Command failed:
    /home/noob/.meteor/packages/meteor-tool/.1.4.0.hylsrj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm
    rebuild --no-bin-links --update-binary
    gyp ERR! clean error
    gyp ERR! stack Error: EACCES: permission denied, rmdir 'build'
    gyp ERR! stack     at Error (native)
    gyp ERR! System Linux 3.16.0-38-generic
    gyp ERR! command
    "/home/noob/.meteor/packages/meteor-tool/.1.4.0.hylsrj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node"
    "/home/noob/.meteor/packages/meteor-tool/.1.4.0.hylsrj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js"
    "rebuild"
    gyp ERR! cwd
    /home/noob/.meteor/packages/npm-bcrypt/.0.8.7.1np1i1l++os.linux.x86_64+web.browser+web.cordova/npm/node_modules/.temp-140iag7/node_modules/bcrypt
    gyp ERR! node -v v4.4.7
    gyp ERR! node-gyp -v v3.4.0
    gyp ERR! not ok 

    npm ERR! Linux 3.16.0-38-generic
    npm ERR! argv
    "/home/noob/.meteor/packages/meteor-tool/.1.4.0.hylsrj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node"
    "/home/noob/.meteor/packages/meteor-tool/.1.4.0.hylsrj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm"
    "rebuild" "--no-bin-links" "--update-binary"
    npm ERR! node v4.4.7
    npm ERR! npm  v3.10.5
    npm ERR! code ELIFECYCLE
    npm ERR! [email protected] install: `node-gyp rebuild`
    npm ERR! Exit status 1
    npm ERR!
    .....


It was an permission error I do a sudo chown -R $USERNAME /home/noob and now all work fine

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Gyp err configure error gyp err stack error gyp failed with exit code 1
  • Gyp err build error gyp err stack error make failed with exit code 2
  • Gx gaming клавиатура как изменить цвет подсветки
  • Gw2 connection error s detected retrying
  • Gw2 a serious error

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии