What happened?
i'm in endeavouros "Arch Linux based Distro" i installed nodejs using fnm tried both node v16 and node v14 the output below from v14
steps:-
$ mkdir sbird-design-system
$ cd sbird-design-system
$ npm init
$ npm install --save-dev @microsoft/fast-cli
i aliased fast command in package.json ( "scripts": { "fast": "fast" } )
npm run fast ....
$ npm run fast config
i realized it only added config file so next i ran :
$ npm run fast init
Note: until now things all fine
when i run fast add-component :
$ npm run fast add-component --name test
Note: i tried installed fast-cli globaly as well node v16 same results
this happen and component doesnt appear in my " src/components folder"
output:
[mohammed9@architect-pc sbird-design-system]$ npm run fast add-component --name test
[email protected] fast /home/mohammed9/webdev/design-systems/sbird-design-system
fast "add-component" "test"
npm WARN deprecated [email protected]: this package has been deprecated
npm WARN [email protected] requires a peer of acorn@^8 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of webpack@^2.0.0 || ^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/watchpack-chokidar2/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
249 packages are looking for funding
run npm fund
for details
found 8 high severity vulnerabilities
run npm audit fix
to fix them, or npm audit
for details
(node:164735) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
at new NodeError (internal/errors.js:322:7)
at validateString (internal/validators.js:124:11)
at Object.resolve (path.js:1074:7)
at file:///home/mohammed9/webdev/design-systems/sbird-design-system/node_modules/@microsoft/fast-cli/dist/esm/cli.js:234:34
at Generator.next ()
at /home/mohammed9/webdev/design-systems/sbird-design-system/node_modules/tslib/tslib.js:118:75
at new Promise ()
at __awaiter (/home/mohammed9/webdev/design-systems/sbird-design-system/node_modules/tslib/tslib.js:114:16)
at checkTemplateForFiles (file:///home/mohammed9/webdev/design-systems/sbird-design-system/node_modules/@microsoft/fast-cli/dist/esm/cli.js:233:12)
at file:///home/mohammed9/webdev/design-systems/sbird-design-system/node_modules/@microsoft/fast-cli/dist/esm/cli.js:284:15
(Use node --trace-warnings ...
to show where the warning was created)
(node:164735) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:164735) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
â The package containing a component template âĻ test
â The name of the component âĻ test
last 2 lines after the error above appear i can enter the component name and i pressed enter but nothing happened
i went through docs many times but couldn't see anything wrong with my approach i'm some what still new developer.
Best regards
What package(s) are causing the problem?
"@microsoft/fast-cli": "^1.0.0-alpha.5"
Relevant log output
mohammed9@architect-pc sbird-design-system]$ npm run fast add-component --name test
> [email protected] fast /home/mohammed9/webdev/design-systems/sbird-design-system
> fast "add-component" "test"
npm WARN deprecated [email protected]: this package has been deprecated
npm WARN [email protected] requires a peer of acorn@^8 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of webpack@^2.0.0 || ^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/watchpack-chokidar2/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
+ [email protected]
updated 1 package and audited 1679 packages in 17.083s
249 packages are looking for funding
run `npm fund` for details
found 8 high severity vulnerabilities
run `npm audit fix` to fix them, or `npm audit` for details
(node:164735) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
at new NodeError (internal/errors.js:322:7)
at validateString (internal/validators.js:124:11)
at Object.resolve (path.js:1074:7)
at file:///home/mohammed9/webdev/design-systems/sbird-design-system/node_modules/@microsoft/fast-cli/dist/esm/cli.js:234:34
at Generator.next (<anonymous>)
at /home/mohammed9/webdev/design-systems/sbird-design-system/node_modules/tslib/tslib.js:118:75
at new Promise (<anonymous>)
at __awaiter (/home/mohammed9/webdev/design-systems/sbird-design-system/node_modules/tslib/tslib.js:114:16)
at checkTemplateForFiles (file:///home/mohammed9/webdev/design-systems/sbird-design-system/node_modules/@microsoft/fast-cli/dist/esm/cli.js:233:12)
at file:///home/mohammed9/webdev/design-systems/sbird-design-system/node_modules/@microsoft/fast-cli/dist/esm/cli.js:284:15
(Use `node --trace-warnings ...` to show where the warning was created)
(node:164735) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:164735) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
â The package containing a component template âĻ test
â The name of the component âĻ test
bug status:triage