parcel 1.7.0 does not install via npm on arch linux arm

Created on 1 Apr 2018  路  16Comments  路  Source: parcel-bundler/parcel

馃悰 bug report

馃帥 Configuration (.babelrc, package.json, cli command)

{
  "presets": ["env"]
}

馃 Expected Behavior

it should install as 1.6.2 does
npm install -g [email protected]
works, but
npm install -g parcel-bundler
does not

馃槸 Current Behavior

npm install -g parcel-bundler
/root/.nvm/versions/node/v9.10.1/bin/parcel -> /root/.nvm/versions/node/v9.10.1/lib/node_modules/parcel-bundler/bin/cli.js

> [email protected] install /root/.nvm/versions/node/v9.10.1/lib/node_modules/parcel-bundler/node_modules/deasync
> node ./build.js

gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/root/.nvm/versions/node/v9.10.1/lib/node_modules/parcel-bundler/node_modules/deasync/build'
gyp ERR! System Linux 4.14.18-1-ARCH
gyp ERR! command "/root/.nvm/versions/node/v9.10.1/bin/node" "/root/.nvm/versions/node/v9.10.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /root/.nvm/versions/node/v9.10.1/lib/node_modules/parcel-bundler/node_modules/deasync
gyp ERR! node -v v9.10.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/parcel-bundler/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node ./build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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/2018-04-01T12_39_49_046Z-debug.log

馃拋 Possible Solution

馃敠 Context

馃捇 Code Sample

馃實 Your Environment

| Software | Version(s) |
| ---------------- | ---------- |
| Parcel | 1.7.0
| Node | 9.10.1
| npm/Yarn | 5.6.0
| Operating System | armv7l GNU/Linux

Bug

Most helpful comment

I'm using WSL/ubuntu with root user and solved that error with:

npm install -g parcel-bundler --unsafe-perm=true --allow-root

All 16 comments

Seems like a permission issue, looking at the error log

Seems like a permission issue, looking at the error log

npm install -g parcel-bundler

I am running this as "root"
Why does
npm install -g [email protected]
work ?

mkdir '/root/.nvm/versions/node/v9.10.1/lib/node_modules/parcel-bundler/node_modules/deasync/build'
can not work because parent directories do not exist
but
mkdir -p '/root/.nvm/versions/node/v9.10.1/lib/node_modules/parcel-bundler/node_modules/deasync/build'
would work

The deasync dependency got added in v1.7, might be a bug in their install script?

I'm having a similar issue on Ubuntu 16.04. I'm going to try to install 1.6.2 and see if that will work. Fwiw, I've tried as root too and still nothing.

Ok, I figured out my issue. The "most recent" version of node.js on my computer was 4.2..... I needed to install nvm to upgrade to the real most recent version. After that, npm install -g parcel-bundler worked fine...

Why is it closed?
My issue is not solved!

Closed it by mistake although it's probably not parcel related

Same issue here with Node.js v.10.0.0 via nvm on a Rpi2. Instead, Parcel v1.6.2 installs just fine.

@ACXgit deasync has no prebuild binaries for node 10 or arch linux. Perhaps open an issue there

Sent with GitHawk

I have a similar problem with Alpine Linux 馃槩
This might be due to the node-alpine docker image missing build tools to actually build with node-gyp.

@styfle can you install the alpine-sdk and python-dev packages in your container? It should be enough to build most Node.js native modules :

apk add --update alpine-sdk python-dev

@fathyb Thanks! 馃帀

I found another issue that is very similar to what you suggested: https://github.com/mhart/alpine-node/issues/27

why is this closed? it still does not work on RPi2.

Also having a similar problem.

yarn global add parcel-bundler

Fails on my raspberrypi.

same on raspberry.
this should not be closed.

(installing deasync)
[email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"

I'm using WSL/ubuntu with root user and solved that error with:

npm install -g parcel-bundler --unsafe-perm=true --allow-root
Was this page helpful?
0 / 5 - 0 ratings

Related issues

oliger picture oliger  路  3Comments

466023746 picture 466023746  路  3Comments

philipodev picture philipodev  路  3Comments

dsky1990 picture dsky1990  路  3Comments

mnn picture mnn  路  3Comments