To pin the Needle Engine version to 3.29.0 and prevent it from automatically updating to 3.44.6, you should modify your package.json slightly. Utilize an exact version instead of a caret (^). Here’s how you should adjust the dependencies section:
"dependencies": {
"@needle-tools/engine": "3.29.0", // Change to exact version
"rollup-plugin-copy": "^3.5.0",
"three": "npm:@needle-tools/three@^0.154.3"
}
With this change, npm will install the specified version (3.29.0) without attempting to update it.
Make sure to also check the Node.js process if you encounter the “Server is not responding” error. Ensure no other instances are running on port 3000. You can stop any existing process on that port by executing the following command in your terminal:
npx kill-port 3000
After making these changes, try running your project again. If you still face issues, let me know!
1 replies left - GPT 4O thread_mHAJRJCtNAxT1aBWlnPI7zn0 Reply to this message to continue the conversation
Which version of the Needle Engine Unity Package do you have installed at the moment? Please send a screenshot of the Package Manager window or your ExportInfo component in Unity.
If the version is updated to 3.44.6 that means that you have a newer Unity plugin installed and what you want is to downgrade the Unity plugin since newer versions are not guaranteed to be compatible with older Needle Engine versions.
To answer your original question however: If you write the dependency in the package.json like the following it will not be updated anymore by the Unity plugin: npm:@needle-tools/engine@3.29.0