Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

npm install fails on Ubuntu 14.04 with recent node/npm #1212

Closed
bitemyapp opened this issue Mar 31, 2016 · 30 comments
Closed

npm install fails on Ubuntu 14.04 with recent node/npm #1212

bitemyapp opened this issue Mar 31, 2016 · 30 comments

Comments

@bitemyapp
Copy link

npm WARN optional Skipping failed optional dependency /electron-builder/appdmg:
npm WARN notsup Not compatible with your operating system or architecture: appdmg@0.3.6
npm WARN optional Skipping failed optional dependency /webpack/watchpack/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.11
npm ERR! Linux 4.2.0-34-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v5.9.1
npm ERR! npm  v3.7.3
npm ERR! code ELIFECYCLE

npm ERR! keytar@3.0.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the keytar@3.0.0 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the keytar package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs keytar
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls keytar
npm ERR! There is likely additional logging output above.
@bitemyapp bitemyapp changed the title Install fails on Ubuntu 14.04 with recent node/npm npm install fails on Ubuntu 14.04 with recent node/npm Mar 31, 2016
@OlegKuts
Copy link

OlegKuts commented Apr 7, 2016

Same on Xubuntu 14.04
Node v5.10.1
npm 3.8.3

npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.11

when trying to install separately

npm ERR! Linux 3.19.0-25-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "fsevents"
npm ERR! node v5.10.1
npm ERR! npm  v3.8.3
npm ERR! code EBADPLATFORM

npm ERR! notsup Not compatible with your operating system or architecture: fsevents@1.0.11
npm ERR! notsup Valid OS:    darwin
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   linux
npm ERR! notsup Actual Arch: x64

my log

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'install', 'fsevents' ]
2 info using npm@3.8.3
3 info using node@v5.10.1
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly fetchPackageMetaData fsevents
8 silly fetchNamedPackageData fsevents
9 silly mapToRegistry name fsevents
10 silly mapToRegistry using default registry
11 silly mapToRegistry registry https://registry.npmjs.org/
12 silly mapToRegistry data Result {
12 silly mapToRegistry raw: 'fsevents',
12 silly mapToRegistry scope: null,
12 silly mapToRegistry name: 'fsevents',
12 silly mapToRegistry rawSpec: '',
12 silly mapToRegistry spec: 'latest',
12 silly mapToRegistry type: 'tag' }
13 silly mapToRegistry uri https://registry.npmjs.org/fsevents
14 verbose request uri https://registry.npmjs.org/fsevents
15 verbose request no auth needed
16 info attempt registry request try #1 at 8:23:30 PM
17 verbose request id 427c062f74a49449
18 verbose etag "8PVGYBXJZ0N7A0VP5BLLIVEG2"
19 http request GET https://registry.npmjs.org/fsevents
20 http 304 https://registry.npmjs.org/fsevents
21 verbose headers { date: 'Thu, 07 Apr 2016 20:23:30 GMT',
21 verbose headers via: '1.1 varnish',
21 verbose headers 'cache-control': 'max-age=300',
21 verbose headers etag: '"8PVGYBXJZ0N7A0VP5BLLIVEG2"',
21 verbose headers age: '29',
21 verbose headers connection: 'keep-alive',
21 verbose headers 'x-served-by': 'cache-fra1222-FRA',
21 verbose headers 'x-cache': 'HIT',
21 verbose headers 'x-cache-hits': '1',
21 verbose headers 'x-timer': 'S1460060610.223831,VS0,VE0',
21 verbose headers vary: 'Accept-Encoding' }
22 silly get cb [ 304,
22 silly get { date: 'Thu, 07 Apr 2016 20:23:30 GMT',
22 silly get via: '1.1 varnish',
22 silly get 'cache-control': 'max-age=300',
22 silly get etag: '"8PVGYBXJZ0N7A0VP5BLLIVEG2"',
22 silly get age: '29',
22 silly get connection: 'keep-alive',
22 silly get 'x-served-by': 'cache-fra1222-FRA',
22 silly get 'x-cache': 'HIT',
22 silly get 'x-cache-hits': '1',
22 silly get 'x-timer': 'S1460060610.223831,VS0,VE0',
22 silly get vary: 'Accept-Encoding' } ]
23 verbose etag https://registry.npmjs.org/fsevents from cache
24 verbose get saving fsevents to /home/xubuntu/.npm/registry.npmjs.org/fsevents/.cache.json
25 verbose correctMkdir /home/xubuntu/.npm correctMkdir not in flight; initializing
26 silly install normalizeTree
27 silly loadCurrentTree Finishing
28 silly loadIdealTree Starting
29 silly install loadIdealTree
30 silly cloneCurrentTree Starting
31 silly install cloneCurrentTreeToIdealTree
32 silly cloneCurrentTree Finishing
33 silly loadShrinkwrap Starting
34 silly install loadShrinkwrap
35 silly loadShrinkwrap Finishing
36 silly loadAllDepsIntoIdealTree Starting
37 silly install loadAllDepsIntoIdealTree
38 silly rollbackFailedOptional Starting
39 silly rollbackFailedOptional Finishing
40 silly runTopLevelLifecycles Starting
41 silly runTopLevelLifecycles Finishing
42 silly install printInstalled
43 verbose stack Error: Unsupported platform for fsevents@1.0.11: wanted {"name":"fsevents","version":"1.0.11","description":"Native Access to Mac OS-X FSEvents","main":"fsevents.js","dependencies":{"nan":"^2.1.0","node-pre-gyp":"^0.6.25"},"os":["darwin"],"engines":{"node":">=0.8.0"},"scripts":{"install":"node-pre-gyp install --fallback-to-build","prepublish":"if [ $(npm -v | head -c 1) -lt 3 ]; then exit 1; fi && npm dedupe","test":"tap ./test"},"binary":{"module_name":"fse","module_path":"./lib/binding/{configuration}/{node_abi}-{platform}-{arch}/","remote_path":"./v{version}/","package_name":"{module_name}-v{version}-{node_abi}-{platform}-{arch}.tar.gz","host":"https://fsevents-binaries.s3-us-west-2.amazonaws.com"},"repository":{"type":"git","url":"git+https://github.com/strongloop/fsevents.git"},"keywords":["fsevents","mac"],"author":{"name":"Philipp Dunkel","email":"pip@pipobscure.com"},"license":"MIT","bugs":{"url":"https://github.com/strongloop/fsevents/issues"},"homepage":"https://github.com/strongloop/fsevents","devDependencies":{"tap":"~0.4.8"},"gitHead":"5f2622051aba3232a7a9ec09575ffcf9ea71ef06","bundleDependencies":["node-pre-gyp"],"_id":"fsevents@1.0.11","_npmVersion":"3.6.0","_nodeVersion":"5.7.0","_npmUser":{"name":"es128","email":"elan.shanker+npm@gmail.com"},"dist":{"shasum":"303d4051e411a95a7ad187e6f8ccffe936ca78ac","tarball":"https://registry.npmjs.org/fsevents/-/fsevents-1.0.11.tgz"},"maintainers":[{"name":"bajtos","email":"miro.bajtos@gmail.com"},{"name":"bnoordhuis","email":"info@bnoordhuis.nl"},{"name":"es128","email":"elan.shanker+npm@gmail.com"},{"name":"pipobscure","email":"pip@pipobscure.com"},{"name":"strongloop","email":"callback@strongloop.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/fsevents-1.0.11.tgz_1459451879246_0.5843068221583962"},"directories":{},"_requested":{"raw":"fsevents","scope":null,"name":"fsevents","rawSpec":"","spec":"latest","type":"tag"},"_spec":"fsevents","_where":"/home/xubuntu/Documents/react-js-tutorials/1-basic-react","_args":[["fsevents","/home/xubuntu/Documents/react-js-tutorials/1-basic-react"]],"readme":"ERROR: No README data found!"} (current: {"os":"linux","cpu":"x64"})
43 verbose stack at checkPlatform (/usr/lib/node_modules/npm/node_modules/npm-install-checks/index.js:45:14)
43 verbose stack at thenWarnEngineIssues (/usr/lib/node_modules/npm/lib/install/validate-args.js:41:5)
43 verbose stack at /usr/lib/node_modules/npm/node_modules/iferr/index.js:13:50
43 verbose stack at checkEngine (/usr/lib/node_modules/npm/node_modules/npm-install-checks/index.js:24:10)
43 verbose stack at module.exports.isInstallable (/usr/lib/node_modules/npm/lib/install/validate-args.js:38:3)
43 verbose stack at Array. (/usr/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8)
43 verbose stack at LOOP (/usr/lib/node_modules/npm/node_modules/slide/lib/chain.js:15:14)
43 verbose stack at /usr/lib/node_modules/npm/node_modules/slide/lib/chain.js:18:7
43 verbose stack at checkSelf (/usr/lib/node_modules/npm/lib/install/validate-args.js:46:72)
43 verbose stack at Array. (/usr/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8)
44 verbose pkgid fsevents@1.0.11
45 verbose cwd /home/xubuntu/Documents/react-js-tutorials/1-basic-react
46 error Linux 3.19.0-25-generic
47 error argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "fsevents"
48 error node v5.10.1
49 error npm v3.8.3
50 error code EBADPLATFORM
51 error notsup Not compatible with your operating system or architecture: fsevents@1.0.11
52 error notsup Valid OS: darwin
52 error notsup Valid Arch: any
52 error notsup Actual OS: linux
52 error notsup Actual Arch: x64
53 verbose exit [ 1, true ]

@benbonnet
Copy link

same here
ubuntu 15.10
node v5.10.1
npm 3.8.7

@allupaku
Copy link

Same here.. any update on this issue ?

@trustfarm-dev
Copy link

same on ubuntu 15.10

@gersonZaragocin
Copy link

The workaround used to solve this is to delete completely the node_modules folder and execute npm install again

@demipel8
Copy link

same on antergos (Arch Linux). The workaround isn't functioning for me

@nicolasmendoza
Copy link

Same Xubuntu 15.04.

@cpappen
Copy link

cpappen commented Apr 21, 2016

I'm with the same problem on ubuntu 16.04 beta.
Even deleting the folder** node_modules** and execute npm install does'nt fixed the error for me.
nodejs v5.10.1
npm 3.8.6

@brunocascio
Copy link

Hi! this work for me:

rm -rf node_modules/ && npm install && npm rebuild

I'm using node 5.10 and npm 3.8.7

@rnorden
Copy link

rnorden commented Apr 22, 2016

@brunocascio
That didn't work for me.

npm ERR! Linux 4.4.6-201.fc22.x86_64
npm ERR! argv "node" "/usr/bin/npm" "install" "fsevents"
npm ERR! node v0.10.42
npm ERR! npm v3.8.7
npm ERR! code EBADPLATFORM

@brunocascio
Copy link

brunocascio commented Apr 22, 2016

Hi @rnorden
Maybe that is related with the Linux kernel version (4.4.6-201).

I'm using 3.19.X Linux branch.

@mikela
Copy link

mikela commented Apr 25, 2016

Hi, fsevents is for Mac OSX only, not Linux. https://www.npmjs.com/package/fsevents

@Citrullin
Copy link

Same issue in Babel. Why it's a dependency? oO

@luixxiul
Copy link
Contributor

@bbondy Closing this with #1682?

@bbondy
Copy link
Member

bbondy commented May 12, 2016

Let us know if there's still an issue after the update on the documentation just referenced, thanks.

@luixxiul
Copy link
Contributor

Closing for a moment. If this is persistent please leave a log, thanks.

@luixxiul
Copy link
Contributor

For the participants: the instruction for installation has been updated. Would you please retry following it on README and tell me if the error persists? If so I will reopen the issue. Thanks!

@mangar
Copy link

mangar commented Jul 17, 2016

If you're running that on a CI server, try to remove the node_modules dir before run the npm install.
This worked for me.

@VivaThapelo
Copy link

Please help, this is important work stuff

npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.1.1

@Citrullin
Copy link

@katlehotech It's a Mac specific thing. If you have a Linux/Windows System you don't need to care of it.

@bsclifton
Copy link
Member

@katlehotech are you all using Brave at your work? (that would be cool) 🦁

@luc-chevaux
Copy link

Hi this works also for me on ubuntu 16.04 x64:

rm -rf node_modules/ && npm install && npm rebuild

@jcsky
Copy link

jcsky commented Mar 29, 2017

rm -rf node_modules/ && npm install && npm rebuild
It's not work on ubuntu 16.04, node v7.7.2, npm 4.1.2

@luixxiul
Copy link
Contributor

will you paste here what is the output of the error?

@Tomasz-Silpion
Copy link

Tomasz-Silpion commented May 30, 2017

Same problem and rm -rf node_modules/ && npm install && npm rebuild does not help as well runing npm install as sudo or normal user.

npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.1.1

Ubuntu 16.04, trying to use gulp I get

Starting 'deploy'...  
Starting 'inheritance'...  
'inheritance' errored after 2.05 ms
SyntaxError: Unexpected token =

@Tomasz-Silpion
Copy link

nvm, error is gone after updating node to the latest https://askubuntu.com/questions/426750/how-can-i-update-my-nodejs-to-the-latest-version

@manjujidagi
Copy link

manjujidagi commented Aug 31, 2018

Same issue on Lubuntu 18.04

npm install --save-dev fsevents

npm ERR! Linux 4.15.0-33-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "--save-dev" "fsevents"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code EBADPLATFORM

npm ERR! notsup Not compatible with your operating system or architecture: fsevents@1.2.4
npm ERR! notsup Valid OS: darwin
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: linux
npm ERR! notsup Actual Arch: x64

npm ERR! Please include the following file with any support request:
npm ERR! /media/qrera/490A42B3186E319A/TASKS/qpulse_app/npm-debug.log

npm-debug.log

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node',
1 verbose cli '/usr/bin/npm',
1 verbose cli 'install',
1 verbose cli '--save-dev',
1 verbose cli 'fsevents' ]
2 info using npm@3.5.2
3 info using node@v8.10.0
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly fetchPackageMetaData fsevents
8 silly fetchNamedPackageData fsevents
9 silly mapToRegistry name fsevents
10 silly mapToRegistry using default registry
11 silly mapToRegistry registry https://registry.npmjs.org/
12 silly mapToRegistry uri https://registry.npmjs.org/fsevents
13 verbose request uri https://registry.npmjs.org/fsevents
14 verbose request no auth needed
15 info attempt registry request try #1 at 1:51:35 PM
16 verbose request id 3464a813fc82ce72
17 verbose etag W/"1f6c1f25b9f645ad374c652ec54b1ad9"
18 verbose lastModified Sun, 27 May 2018 01:18:06 GMT
19 http request GET https://registry.npmjs.org/fsevents
20 http 304 https://registry.npmjs.org/fsevents
21 verbose headers { date: 'Fri, 31 Aug 2018 08:21:35 GMT',
21 verbose headers connection: 'keep-alive',
21 verbose headers 'set-cookie':
21 verbose headers [ '__cfduid=d177ce614176661d548082e65370ddf461535703695; expires=Sat, 31-Aug-19 08:21:35 GMT; path=/; domain=.registry.npmjs.org; HttpOnly' ],
21 verbose headers 'cf-cache-status': 'HIT',
21 verbose headers 'cache-control': 'max-age=300',
21 verbose headers 'cf-ray': '452e159ee920895d-MAA',
21 verbose headers etag: '"1f6c1f25b9f645ad374c652ec54b1ad9"',
21 verbose headers 'expect-ct': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
21 verbose headers 'last-modified': 'Sun, 27 May 2018 01:18:06 GMT',
21 verbose headers vary: 'accept-encoding, accept',
21 verbose headers server: 'cloudflare' }
22 silly get cb [ 304,
22 silly get { date: 'Fri, 31 Aug 2018 08:21:35 GMT',
22 silly get connection: 'keep-alive',
22 silly get 'set-cookie':
22 silly get [ '__cfduid=d177ce614176661d548082e65370ddf461535703695; expires=Sat, 31-Aug-19 08:21:35 GMT; path=/; domain=.registry.npmjs.org; HttpOnly' ],
22 silly get 'cf-cache-status': 'HIT',
22 silly get 'cache-control': 'max-age=300',
22 silly get 'cf-ray': '452e159ee920895d-MAA',
22 silly get etag: '"1f6c1f25b9f645ad374c652ec54b1ad9"',
22 silly get 'expect-ct': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
22 silly get 'last-modified': 'Sun, 27 May 2018 01:18:06 GMT',
22 silly get vary: 'accept-encoding, accept',
22 silly get server: 'cloudflare' } ]
23 verbose etag https://registry.npmjs.org/fsevents from cache
24 verbose get saving fsevents to /home/qrera/.npm/registry.npmjs.org/fsevents/.cache.json
25 silly install normalizeTree
26 silly loadCurrentTree Finishing
27 silly loadIdealTree Starting
28 silly install loadIdealTree
29 silly cloneCurrentTree Starting
30 silly install cloneCurrentTreeToIdealTree
31 silly cloneCurrentTree Finishing
32 silly loadShrinkwrap Starting
33 silly install loadShrinkwrap
34 silly loadShrinkwrap Finishing
35 silly loadAllDepsIntoIdealTree Starting
36 silly install loadAllDepsIntoIdealTree
37 silly rollbackFailedOptional Starting
38 silly rollbackFailedOptional Finishing
39 silly runTopLevelLifecycles Starting
40 silly runTopLevelLifecycles Finishing
41 silly install printInstalled
42 verbose stack Error: Unsupported
42 verbose stack at checkPlatform (/usr/share/npm/node_modules/npm-install-checks/index.js:46:14)
42 verbose stack at Array. (/usr/share/npm/node_modules/slide/lib/bind-actor.js:15:8)
42 verbose stack at LOOP (/usr/share/npm/node_modules/slide/lib/chain.js:15:14)
42 verbose stack at /usr/share/npm/node_modules/slide/lib/chain.js:18:7
42 verbose stack at checkEngine (/usr/share/npm/node_modules/npm-install-checks/index.js:25:10)
42 verbose stack at Array. (/usr/share/npm/node_modules/slide/lib/bind-actor.js:15:8)
42 verbose stack at LOOP (/usr/share/npm/node_modules/slide/lib/chain.js:15:14)
42 verbose stack at chain (/usr/share/npm/node_modules/slide/lib/chain.js:20:5)
42 verbose stack at module.exports.isInstallable (/usr/share/npm/lib/install/validate-args.js:26:3)
42 verbose stack at Array. (/usr/share/npm/node_modules/slide/lib/bind-actor.js:15:8)
43 verbose pkgid fsevents@1.2.4
44 verbose cwd /media/qrera/490A42B3186E319A/TASKS/qpulse_app
45 error Linux 4.15.0-33-generic
46 error argv "/usr/bin/node" "/usr/bin/npm" "install" "--save-dev" "fsevents"
47 error node v8.10.0
48 error npm v3.5.2
49 error code EBADPLATFORM
50 error notsup Not compatible with your operating system or architecture: fsevents@1.2.4
51 error notsup Valid OS: darwin
51 error notsup Valid Arch: any
51 error notsup Actual OS: linux
51 error notsup Actual Arch: x64
52 verbose exit [ 1, true ]

@cosmin
Copy link

cosmin commented Sep 5, 2018

fsevents isn't going to install on Linux because it's only designed for OS X, see the https://www.npmjs.com/package/fsevents

@Creative9991
Copy link

Can you please some one help me with the below error,
I am getting this error while i am building angular app, npm install and almost every time when i am using npm.

npm ERR! path /home/user/.npm/_cacache/index-v5/9a/e4/c8b1b5f5ecdb3896ae63d10f31b93c6e3785501944906912db49c8ba02da
npm ERR! code Unknown system error -117
npm ERR! errno -117
npm ERR! syscall open
npm ERR! Unknown system error -117: Unknown system error -117, open '/home/user/.npm/_cacache/index-v5/9a/e4/c8b1b5f5ecdb3896ae63d10f31b93c6e3785501944906912db49c8ba02da'

npm ERR! A complete log of this run can be found in:
npm ERR! /home/user/.npm/_logs/2019-04-01T23_17_14_132Z-debug.log

@bsclifton
Copy link
Member

Hi @Creative9991 -
Your issue is not related to Brave. You'll want to search StackOverflow or similar for more details about that error

@brave brave locked and limited conversation to collaborators Apr 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests