-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parcel@next install fails: source-map: Command failed. #4426
Comments
Not entirely sure why this fails it should come with prebuilds. Especially on Mac OS X. It might be trying to install an old version? Unless you're running 32-bit it should be there: https://unpkg.com/browse/@parcel/source-map@2.0.0-alpha.4.6/prebuilds/darwin-x64/ |
I'm on MacOS Catalina 10.15.3 I do see the prebuilds in my node_modules as well. |
Python 2 indeed being used... |
@mischnic any clue why it's even running |
No.
|
|
@DeMoorJasper No idea |
Running into this error in windows because it is looking for python.
|
@aarjithn it is for building native node modules using node-gyp but that should not be necessary on windows, mac, linux and alpine linux. I have no clue why it is even running node-gyp in the first place especially rebuild, it should just detect a prebuild and use that |
Thanks @DeMoorJasper, makes sense. I can confirm (Previously I ran the command incorrectly. Have edited comment to avoid confusion, thanks again @DeMoorJasper |
@aarjithn I think you ran that command in your project and not inside the folder where source-map has been installed. You should run that command in |
This is the package.json of {
// ...
"license": "MIT",
"main": "./dist/node.js",
"name": "@parcel/source-map",
"scripts": {
"benchmark": "npm run benchmark:node && npm run benchmark:wasm",
"benchmark:node": "cross-env BACKEND=node node ./bench/run",
"benchmark:wasm": "cross-env BACKEND=wasm node ./bench/run",
"build:dev": "node-gyp rebuild --debug",
"compile-wasm": "make",
"install": "node-gyp rebuild", /// <<-------- where does this come from?
"lint": "prettier --write src/*.js",
"postinstall": "node-gyp-build",
"prebuild": "prebuildify --napi --strip --tag-libc",
"prepublish": "npm run transpile",
"rebuild": "rm -rf build && yarn build:dev",
"test": "npm run test:node && npm run test:wasm",
"test:node": "cross-env BACKEND=node mocha ./test/*.test.js",
"test:wasm": "cross-env BACKEND=wasm mocha ./test/*.test.js",
"transpile": "babel ./src/*.js --out-dir ./dist && flow-copy-source -v src dist",
"typecheck": "flow"
},
"version": "2.0.0-alpha.4.7"
} Compare to: https://unpkg.com/browse/@parcel/source-map@2.0.0-alpha.4.7/package.json Great, npm adds this as a default value: https://docs.npmjs.com/misc/scripts#default-values |
@mischnic wow that's strange, npm shouldn't be modifying anything to a deploy... anyway great discovery will merge your PR and close of this issue :) |
(This happens during |
🐛 bug report
Cannot install the latest @next version of parcel.
parcel@2.0.0-alpha.3.2
an error occurs in the source-map script.
🤔 Expected Behavior
parcel should install
😯 Current Behavior
yarn add parcel@2.0.0-alpha.3.2 fails
npm install parcel@2.0.0-alpha.3.2 fails
🔦 Context
LOG:
🌍 Your Environment
yarn global v1.17.3
The text was updated successfully, but these errors were encountered: