parcel: parcel 1.7.0 does not install via npm on arch linux arm

šŸ› bug report

šŸŽ› Configuration (.babelrc, package.json, cli command)

{
  "presets": ["env"]
}

šŸ¤” Expected Behavior

it should install as 1.6.2 does npm install -g parcel-bundler@1.6.2 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

> deasync@0.1.12 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: fsevents@1.1.3 (node_modules/parcel-bundler/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! deasync@0.1.12 install: `node ./build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the deasync@0.1.12 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

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 16 (5 by maintainers)

Most upvoted comments

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

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

@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