# Aurelia CLI plugin for v1 problems with requirejs-text plugin

**URL:** https://discourse.aurelia.io/t/aurelia-cli-plugin-for-v1-problems-with-requirejs-text-plugin/4932
**Category:** Framework Knowledge
**Created:** [October 3, 2022, 5:50am UTC](https://discourse.aurelia.io/t/aurelia-cli-plugin-for-v1-problems-with-requirejs-text-plugin/4932 "2022-10-03T05:50:36Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![magnusdanielson](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/magnusdanielson/32/924_2.png) [@magnusdanielson](https://discourse.aurelia.io/u/magnusdanielson)
#### Post date: [October 3, 2022, 5:50am UTC](https://discourse.aurelia.io/t/aurelia-cli-plugin-for-v1-problems-with-requirejs-text-plugin/4932/1 "2022-10-03T05:50:36Z")

</div>

If I create a new plugin for Aurelia v1 with aurelia-cli@3.0.1 I get some errors when running

`npm install`

Apparently the require-js text plugin is referenced to github and I could not get that to work so instead I found that I could add an alias to the same npm package. Below change to the package.json made everything work for me.

`"text": "npm:requirejs-text@^2.0.16"`

---

<div class="post-metadata">

### Author: ![huochunpeng](https://avatars.discourse-cdn.com/v4/letter/h/49beb7/32.png) [@huochunpeng](https://discourse.aurelia.io/u/huochunpeng)
#### Post date: [October 9, 2022, 3:15am UTC](https://discourse.aurelia.io/t/aurelia-cli-plugin-for-v1-problems-with-requirejs-text-plugin/4932/2 "2022-10-09T03:15:35Z")

</div>

I got no problem on npm install.  
What’s your npm version? Pls show the error message.

---

<div class="post-metadata">

### Author: ![magnusdanielson](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/magnusdanielson/32/924_2.png) [@magnusdanielson](https://discourse.aurelia.io/u/magnusdanielson)
#### Post date: [October 9, 2022, 7:54pm UTC](https://discourse.aurelia.io/t/aurelia-cli-plugin-for-v1-problems-with-requirejs-text-plugin/4932/3 "2022-10-09T19:54:15Z")

</div>

Ok, with the risk of sounding 80+, it now works fine.

Node v14.19.0  
npm 6.14.16

The error i did get was  
`undefined ls-remote -h -t ssh://git@github.com/requirejs/text.git`

And I bet an ice cream that I have not made any change to my machine since then. The command I used to start with was  
`npx makes aurelia/v1 new-project-name -s plugin,typescript,jest,vscode`

I will just leave my first post, since it has happened to me earlier too.

@huochunpeng thanks for looking at this, I did not mean anyone to spend time on this 🙂

---

<div class="post-metadata">

### Author: ![huochunpeng](https://avatars.discourse-cdn.com/v4/letter/h/49beb7/32.png) [@huochunpeng](https://discourse.aurelia.io/u/huochunpeng)
#### Post date: [October 9, 2022, 8:21pm UTC](https://discourse.aurelia.io/t/aurelia-cli-plugin-for-v1-problems-with-requirejs-text-plugin/4932/4 "2022-10-09T20:21:04Z")

</div>

It looks like that version of npm relies on “git” command from your box, and it didn’t find any (“undefined”).
