renamed prepare.js to devPreinstall.js to better account for how it is used. (Name inspired pnpm lifecycle script.)
Do not throw error in devPreinstall.js. Instead, issue warning.
Try catch operations in .storybook/postinstall.js & log successful completion
Add "node" in front of "ibmtelemetry". This should not be needed since node_modules/.bin/ibmtelemetry includes "#!/usr/bin/env node". But experimentally, this is required at least by npm 20+
nvm use 20 # - Now using node v20.13.1 (npm v10.5.2)
npm create vite@latest app-name -- --template vue
cd add-name
npm install
# Ensure that Vue app itself is running.
Run npm add ./carbon-vue-3.0.15-4a6cf.tgz
pnpm
nvm use 20 # - Now using node v20.13.1 (npm v10.5.2)
npm create vite@latest app-name-pnpm -- --template vue
cd add-name-pnpm
pnpm i
# Ensure that Vue app itself is running.
Run pnpm add ./carbon-vue-3.0.15-4a6cf.tgz
yarn
nvm use 20 # - Now using node v20.13.1 (npm v10.5.2)
npm create vite@latest app-name-yarn -- --template vue
cd add-name-yarn
yarn
# Ensure that Vue app itself is running.
Run yarn add ./carbon-vue-3.0.15-4a6cf.tgz
direct install npm 10 with node 20+ on macos & Ubuntu 22
nvm use 20 # - Now using node v20.13.1 (npm v10.5.2)
tar -xf carbon-vue-3.0.15-1c45c.tgz
cd package
npm install --omit=dev
Contributes to #1576
What did you do?
Possible fix for npm 20+ install issues.
Why did you do it?
How have you tested it?
See "this fails" steps in #1576 carbon-vue-3.0.15-4a6cf.tgz
npm 10 with node 20+
pnpm
yarn
direct install npm 10 with node 20+ on macos & Ubuntu 22
Were docs updated if needed?