-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local packages ENOENT .npm missing #7711
Comments
I'm getting this on 1.4.1.1 with any packages that has not been previously installed on prior versions of Meteor. If I go back to an older, say 1.4.0.1 project, and run "meteor add" on it, it adds the package. Then when I go back to 1.4.1.1 and try to add the same package a second time it starts to work. I am on Win7 x64. https://forums.meteor.com/t/raix-ui-dropped-event-error-enoent-on-windows7-x64/28465/2 |
+1 |
I'm seeing this as well. In our case my case I didn't add the .npm directories in version control, causing this error on my CI environment. Adding the .npm directories to VCS fixed the error, but causes the Meteor server to restart once after installing the packages. |
Not confirming as a bug as I haven't had time to reproduce, but for the purposes of issue tracking, if someone could provide the exact shell commands to reproduce this from scratch it would facilitate any fix for this! |
@abernix here is a script to reproduce the problem :
|
Thank you very much for the reproduction! Someone will look into this as soon as possible. |
It turns out that this is causing our server to restart in our CI environment because the creation of the directory "foo_package" instead of "foo:package" triggers the file watchers. It's currently preventing us from updating to 1.4.1.1 from 1.4.0.1 because our tests fail because of the server restart. |
I get this issue for our
Works locally though, when invoking the Edit: Renaming the package to |
I believe this bug was caused by the fix to #7661, as I explained in #7661 (comment). As I explain in that comment, I think the fix would be to use abernix@991eb1d instead of the previous commits (61c1ab0 + 4c1fe8f). I believe it would be safe to make that change. |
I've confirmed this is still happening with Meteor 1.6. |
There hasn't been any activity on this issue in quite some time, so I'll close it for now. If anyone is still encountering this problem, and is interested in working on a fix, please let us know. Thanks! |
This is still an issue. |
[1.4.1.1] local packages ENOENT .npm missing
On ‘meteor run’ got this error :
Local package ‘local:pack’ is linked inside packages folder into another directory:
/home/app/packages/local:pack -> ../../packages/pack
Seems meteor, some times take local:pack and other times a sanitized version local_pack
Moreover it creates /home/app/packages/local_pack directory with .npm inside
One solution to get rid of the error is to add .npm directory manually inside all local packages /home/packages/*
With lot of local packages this script helps :
cd /home/packages ;
for i in * ; do mkdir $i/.npm ; done
The text was updated successfully, but these errors were encountered: