npm packages no longer stored in repository

60 views
Skip to first unread message

Andrew Eisenberg

unread,
Jan 22, 2013, 12:58:52 AM1/22/13
to script...@googlegroups.com
We have recently removed the npm packages from the scripted git
repository. Now, after cloning scripted from github, you will need to
run `npm install` in order to grab the dependencies. We are also now
using bower for the client components. Bower will be installed
automatically by npm and then will be used to install the client
components.

Marcel Rassinger

unread,
Jan 25, 2013, 1:47:43 AM1/25/13
to script...@googlegroups.com
I just tried to get the latest commit (e9ba5ea0f3running but the browser couldn't load requirejs. Comparing the client\scripts\lib directories  of the latest commit with version 0.3.0 shows that the requirejs folder is missing.
I got the latest commit by using git clone and npm install. Both worked fine. However, did I do something wrong?

Scott Andrews

unread,
Jan 25, 2013, 5:31:00 AM1/25/13
to Marcel Rassinger, script...@googlegroups.com
That's the intended behavior.

-Scott

Sent from my iPad

Kris De Volder

unread,
Jan 28, 2013, 2:11:04 PM1/28/13
to script...@googlegroups.com
@Marcel,

Its not quite clear to me from the messages in this thread if your
problem actualy got resolved...

If you are still having issues with running scripted because of
missing dependencies (like requirejs).
Try a complete and thorough cleaning and re-installing of the
dependencies like so:

    cd scripted     # go stand at the root of your git clone
    git clean -fxd  # remove all files/dirs from the filesystem that are *not* in the repo
    npm install      # reinstall all external dependencies

I found I needed to do this kind of cleaning sometimes because
existing stuff in node_modules
confuses the npm install.

Now try again.

Let us know if you still have problems.

Xavier Seignard

unread,
Mar 5, 2013, 8:24:01 AM3/5/13
to script...@googlegroups.com

Hi, I noticed you removed node_modules from version control.

I'm still wondering if it's a good practice. Here is an argumentation that speaks to me : http://www.futurealoof.com/posts/nodemodules-in-git.html

I can't make my own opinion on that subject, but I think it's a good read.

Keep on the good work, I really do like scripted, and i use it as my daily IDE

Regards

Xavier

On Tuesday, January 22, 2013 6:58:52 AM UTC+1, Andrew Eisenberg wrote:

Reply all
Reply to author
Forward
0 new messages