DEV Community

Discussion on: Generate your web-app boilerplate like create-react-app does.

Collapse
 
sardapv profile image
Pranav Sarda • Edited

Hey, I am trying to follow your steps to convert my angular boilerplate into npx command. I'm not using parcel anyways. But rest, I have bin command setup and js file.

  "bin": {
    "create-angular-boilerplate": "./generate-app.js"
  },
Enter fullscreen mode Exit fullscreen mode

but when I run npm link 'create-angular-bolerplate' it gives me

npm ERR! code E404
**npm ERR! 404 Not Found - GET https://registry.npmjs.org/create-angular-boilerplate - Not found**
npm ERR! 404
npm ERR! 404  'create-angular-boilerplate@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)

Enter fullscreen mode Exit fullscreen mode

I don't understand where I am going wrong, I tried removing and adding back node-modules. Please help.

Collapse
 
sardapv profile image
Pranav Sarda

Fixed it.. thanks for article. ❤️ but there needs a lot of corrections. you have changed your file name, command name thrice above. also its only 'npm link' we have to run to create symbolic link. then in other folders you can run that command otherwise it tries to fetch from npm registry.

Collapse
 
leopold profile image
Leopold

Hey, thanks for the feedback, I will have a look at this !

Collapse
 
_pspkfan_ profile image
JSP Cult ✊

Hi Pranav, looks like the corrections you mentioned are correct. Would you mind sharing those corrected steps for linking and running