Skip to content

Error while running stencil CLI with latest Cornoerstone #1249

@dipeshjoshi13

Description

@dipeshjoshi13

Expected behavior

Stencil Should work.

Actual behavior

Screenshot 2024-12-24 at 7 36 57 PM npm install -g @bigcommerce/stencil-cli

npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm warn deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm warn deprecated [email protected]: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Node Sass is no longer supported. Please use sass or sass-embedded instead.
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm error code 1
npm error path /Users/dipeshjoshi/.nvm/versions/node/v20.16.0/lib/node_modules/@bigcommerce/stencil-cli/node_modules/node-sass
npm error command failed
npm error command sh -c node scripts/build.js
npm error Binary found at /Users/dipeshjoshi/.nvm/versions/node/v20.16.0/lib/node_modules/@bigcommerce/stencil-cli/node_modules/node-sass/vendor/darwin-arm64-115/binding.node
npm error Testing binary
npm error Binary has a problem: Error: dlopen(/Users/dipeshjoshi/.nvm/versions/node/v20.16.0/lib/node_modules/@bigcommerce/stencil-cli/node_modules/node-sass/vendor/darwin-arm64-115/binding.node, 0x0001): tried: '/Users/dipeshjoshi/.nvm/versions/node/v20.16.0/lib/node_modules/@bigcommerce/stencil-cli/node_modules/node-sass/vendor/darwin-arm64-115/binding.node' (not a mach-o file), '/System/Volumes/Preboot/Cryptexes/OS/Users/dipeshjoshi/.nvm/versions/node/v20.16.0/lib/node_modules/@bigcommerce/stencil-cli/node_modules/node-sass/vendor/darwin-arm64-115/binding.node' (no such file), '/Users/dipeshjoshi/.nvm/versions/node/v20.16.0/lib/node_modules/@bigcommerce/stencil-cli/node_modules/node-sass/vendor/darwin-arm64-115/binding.node' (not a mach-o file)
npm error at Module._extensions..node (node:internal/modules/cjs/loader:1454:18)
npm error at Module.load (node:internal/modules/cjs/loader:1208:32)

Steps to reproduce behavior

I have upgraded cornerstone from 6.5.0. to 6.15.0

Environment

Node version node -v: 20.16.0

NPM version npm -v: 10.8.1

OS: Mac OS 15.2

Package.json

{
"name": "bigcommerce-cornerstone",
"description": "The BigCommerce reference theme for the Stencil platform",
"version": "6.15.0",
"private": true,
"author": "BigCommerce",
"license": "MIT",
"dependencies": {
"@bigcommerce/stencil-utils": "6.18.0",
"core-js": "^3.9.0",
"creditcards": "^4.2.0",
"easyzoom": "^2.5.3",
"focus-trap": "^6.3.0",
"focus-within-polyfill": "^5.1.0",
"formdata-polyfill": "^3.0.20",
"foundation-sites": "^6.9.0",
"jquery": "^3.6.1",
"jstree": "^3.3.12",
"lazysizes": "5.2.2",
"lodash": "^4.17.21",
"nod-validate": "^2.0.12",
"object-fit-images": "^3.2.4",
"regenerator-runtime": "^0.13.7",
"sass": "^1.83.0",
"slick-carousel": "^1.8.1",
"svg-injector": "^1.1.3",
"webfontloader": "^1.6.28",
"whatwg-fetch": "^3.6.1"
},
"devDependencies": {
"@babel/core": "^7.12.17",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/preset-env": "^7.12.17",
"@bigcommerce/citadel": "^2.15.1",
"babel-eslint": "^10.1.0",
"babel-jest": "^29.7.0",
"babel-loader": "^8.2.2",
"babel-plugin-lodash": "^3.3.4",
"clean-webpack-plugin": "^4.0.0",
"cli": "^1.0.1",
"eslint": "^9.17.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "^7.22.0",
"expose-loader": "^4.0.0",
"grunt": "^1.5.3",
"grunt-cli": "^1.4.3",
"grunt-eslint": "^20.0.0",
"grunt-run": "^0.8.1",
"grunt-stylelint": "^0.20.1",
"grunt-svgstore": "^2.0.0",
"imports-loader": "^0.7.1",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-jasmine2": "^29.7.0",
"lighthouse": "^12.1.0",
"load-grunt-config": "^3.0.1",
"lodash-webpack-plugin": "^0.11.6",
"stylelint": "^16.12.0",
"stylelint-config-sass-guidelines": "^12.1.0",
"stylelint-scss": "^6.10.0",
"time-grunt": "^1.2.2",
"url": "^0.11.0",
"webpack": "^5.95.0",
"webpack-bundle-analyzer": "^4.10.2",
"webpack-cli": "^4.5.0",
"webpack-merge": "^5.8.0"
},
"scripts": {
"build": "npx webpack --config webpack.prod.js",
"buildDev": "npx webpack --config webpack.dev.js",
"lighthouse": "npx lighthouse --config-path=lighthouse-config.js --quiet --output html --chrome-flags="--headless" $URL",
"test": "npx jest",
"stylelint": "npx stylelint **/.scss",
"stylelint:fix": "npx stylelint --fix **/
.scss"
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions