-
-
Notifications
You must be signed in to change notification settings - Fork 195
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
[npm5] Local dependency brakes build #3028
Comments
From @tsonevn on August 1, 2017 10:54 Hi @surdu, |
Hi @surdu, Can you please specify version of
|
@dtopuzov Sorry for the late response. Yes, that was the problem: I had npm v5. Downgraded to npm 4, removed node_modules and platform, rebuild and now it works. I'll leave at your latitude to decide if this is a bug worth tracking. Please close the issue if you see fit. |
The problem is that we call We will leave it open for now and see if we can do something, but if there is no good way to workaround this |
Hey @surdu , may I ask you for more details on your case. I've tried to reproduce the issue, but without success. Can you send us the following information:
In case you can send us a sample project, reproducing the issue, it will be a great help for us. |
node: v7.7.2 Hope it helps! |
Hey @surdu , Here's the issue in shelljs shelljs/shelljs#98 Another way to reproduce it is to execute the following:
And you'll see error: For the moment, I would suggest you to use the local plugin from Once again, thank you for the sample project. |
No problem ;) Make sense why it's working with npm 4: it copies the contents of the plugin in node_modules on npm link, and it either not copies the .git folder or it copies it with different permissions. As I actively work on a number of plugins, for now I prefer do downgrade to npm 4 instead of the |
I have the same issue with my local plugins. Will have to downgrade to npm4 since both plugins are being worked on with the app itself. |
Thanks @rosen-vladimirov, I was struggling with this issue as well. I chmod-ed the .git folder and was able to build successfully 👍 |
yes , I delete node_module ,npm version 5 => 4 。 then npm install 。 build success |
Any 5.x solution for this? |
Hi, any solution for this on 5 yet? Use |
This comment was marked as abuse.
This comment was marked as abuse.
^ Gosh, moving all of the plugin source into a
How about a simple solution so no-one has to go through this headache again: can the CLI just change the read/write permissions on the files it copies into the Edit: Nevermind, it seems the issue in |
This comment was marked as abuse.
This comment was marked as abuse.
Yeah, I like how much easier the plugin development is now. It was just a pain figuring out why updating |
From @surdu on August 1, 2017 7:57
After upgrading nativescript to 3.1.3 I have the following error in my project when I try to build:
Did a little investigation and realized the problem is a local dependency in my package JSON:
Taking this out make the app build again.
The weird part is that's not the only local dependency in my project, I have another that doesn't brakes the build.
I can confirm the problem is only in 3.1.3 because I reverted back to 3.1.2 (twice) and the problem is not reproducible using that version.
For context, here is the full dependencies entry:
Copied from original issue: NativeScript/NativeScript#4634
The text was updated successfully, but these errors were encountered: