npm: Error: unknown package: npm-container
I’ve stumbled upon an error trying to run on a Linux box an app that is running fine on OSX. I doubt it’s due to the architecture. It would probably fail on a different Mac as well.
The error is the following:
tanis@samantha:~/soulvenir-meteor$ meteor
Figuring out the best package versions to use. This may take a moment.
Refreshing package metadata. This may take a moment.
Could not resolve the specified constraints for this project:
Error: unknown package: npm-container
tanis@samantha:~/soulvenir-meteor$
About this issue
- Original URL
- State: open
- Created 10 years ago
- Comments: 22 (2 by maintainers)
works for me:
This solution does not work when deploying with meteor up though, so it’s quite troublesome. I think the only solution to that is to actually keep the node modules committed.
@FrequentFlyerU you must first run
meteor
on your app’s dir (havingmeteorhacks:npm
declared on.meteor/packages
). After running themeteor
command, 2 things will happen:npm-container
will be automatically added to.meteor/packages
.packages/npm-container
dir will be created.Then you can add it to version control. I still don’t like this (you didn’t need to add to git the npm modules on previous versions of meteorhacks:npm).